Avi Kivity wrote:
> Jan Kiszka wrote:
>>> But I think I see a bigger issue - if we inject an regular interrupt
>>> while another is pending, then we will encounter this problem.  Looks
>>> like we have to enable the interrupt window after injecting an interrupt
>>> if there are still pending interrupts.
>>>     
>>
>> Yeah, probably. I'm just wondering now if we can set
>> exit-on-interrupt-window while the vcpu state is interruptible (ie.
>> _before_ the injection). There is some entry check like this for NMIs,
>> but maybe no for interrupts. Need to check.
>>   
> 
> Turns out it's not necessary, since the guest eoi will cause an exit and
> allow the code to request an interrupt window.

But you added explicit handling now nevertheless?

> 
> I've added an apic test program so we can track these issues
> (user/test/x86/apic.c).
> 

That's good. BTW, your NMI race fix is still lacking support for the
-no-kvm-irqchip case. Will post an according patch later today.

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2 ES-OS
Corporate Competence Center Embedded Linux
--
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

Reply via email to