• Paolo Bonzini's avatar
    KVM: nSVM: Move SMI vmexit handling to svm_check_nested_events() · 55714cdd
    Paolo Bonzini authored
    Unlike VMX, SVM allows a hypervisor to take a SMI vmexit without having
    any special SMM-monitor enablement sequence.  Therefore, it has to be
    handled like interrupts and NMIs.  Check for an unblocked SMI in
    svm_check_nested_events() so that pending SMIs are correctly prioritized
    over IRQs and NMIs when the latter events will trigger VM-Exit.
    
    Note that there is no need to test explicitly for SMI vmexits, because
    guests always runs outside SMM and therefore can never get an SMI while
    they are blocked.
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    55714cdd
svm.c 107 KB