On 30/07/2015 05:14, Steve Rutherford wrote:
>> > +static void test_ioapic_level_retrigger(void)
>> > +{
>> > + handle_irq(0x9a, ioapic_isr_9a);
>> > + set_ioapic_redir(0x0e, 0x9a, LEVEL_TRIGGERED);
>> > +
>> > + asm volatile ("cli");
>> > + set_irq_line(0x0e, 1);
>> > + while (g_isr_9a != 2)
>> > + asm volatile ("sti; hlt; cli");
> This seems sketchy. The test should be able to exit this and fail.
You're right, this shouldn't take more than 10-15 iterations of the
while loop.
Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html