Re: [PATCH kvm-unit-tests] x86: ioapic: add tests around retriggering of level interrupts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux