• Paolo Bonzini's avatar
    KVM: SVM: preserve VGIF across VMCB switch · 91b7130c
    Paolo Bonzini authored
    There is only one GIF flag for the whole processor, so make sure it is not clobbered
    when switching to L2 (in which case we also have to include the V_GIF_ENABLE_MASK,
    lest we confuse enable_gif/disable_gif/gif_set).  When going back, L1 could in
    theory have entered L2 without issuing a CLGI so make sure the svm_set_gif is
    done last, after svm->vmcb->control.int_ctl has been copied back from hsave.
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    91b7130c
nested.c 25 KB