|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V2] xen: vmx: Use an INT 2 call to process real NMI's instead of self_nmi() in VMEXIT handler
On 15/11/12 17:44, Tim Deegan wrote: At 17:33 +0000 on 15 Nov (1353000782), Mats Petersson wrote:On 15/11/12 17:15, Tim Deegan wrote:At 17:03 +0000 on 15 Nov (1352998993), Mats Petersson wrote:On an AMD CPU we _don't_ have dedicated stacks for NMI or MCE when we're running a HVM guest, so the stack issue doesn't apply (but nested NMIs are still bad). On an Intel CPU, we _do_ use dedicated stacks for NMI and MCE in HVM guests. We don't really have to but it saves time in the context switch not to update the IDT. Using do_nmi() here means that the first NMI is handled on the normal stack instead. It's also consistent with the way we call do_machine_check() for the MCE case. But it needs an explicit IRET after the call to do_nmi() to make sure that NMIs get re-enabled.Both AMD and Intel has an identical setup with regard to stacks and general "what happens when we taken one of these interrupts". No, you are reading it perfectly right, I'm wrong... -- Mats
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |