Re: [RFC KVM 19/27] kvm/isolation: initialize the KVM page table with core mappings

From: Sean Christopherson
Date: Mon May 13 2019 - 12:48:07 EST


On Mon, May 13, 2019 at 08:50:19AM -0700, Dave Hansen wrote:
> I seem to remember that the KVM VMENTRY/VMEXIT context is very special.
> Interrupts (and even NMIs?) are disabled. Would it be feasible to do
> the switching in there so that we never even *get* interrupts in the KVM
> context?

NMIs are enabled on VMX's VM-Exit. On SVM, NMIs are blocked on exit until
STGI is executed.