This series' primarily focus is to refine VMX's handling of INTRs, NMIs and #MCs after a VM-Exit, making a few small optimizations and hopefully resulting in more readable code. There's also a bug fix related to handling #MCs that occur during VM-Entry that was found by inspection when doing the aforementioned cleanup. Sean Christopherson (5): KVM: VMX: Fix handling of #MC that occurs during VM-Entry KVM: VMX: Read cached VM-Exit reason to detect external interrupt KVM: VMX: Store the host kernel's IDT base in a global variable KVM: x86: Move kvm_{before,after}_interrupt() calls to vendor code KVM: VMX: Handle NMIs, #MCs and async #PFs in common irqs-disabled fn arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/kvm/svm.c | 6 +- arch/x86/kvm/vmx/vmcs.h | 6 ++ arch/x86/kvm/vmx/vmx.c | 111 +++++++++++++++++--------------- arch/x86/kvm/vmx/vmx.h | 1 - arch/x86/kvm/x86.c | 4 +- 6 files changed, 71 insertions(+), 59 deletions(-) -- 2.21.0