• Paolo Bonzini's avatar
    KVM: x86: allow RSM from 64-bit mode · 89651a3d
    Paolo Bonzini authored
    The SDM says that exiting system management mode from 64-bit mode
    is invalid, but that would be too good to be true.  But actually,
    most of the code is already there to support exiting from compat
    mode (EFER.LME=1, EFER.LMA=0).  Getting all the way from 64-bit
    mode to real mode only requires clearing CS.L and CR4.PCIDE.
    
    Cc: stable@vger.kernel.org
    Fixes: 660a5d51Tested-by: default avatarLaszlo Ersek <lersek@redhat.com>
    Cc: Radim Krčmář <rkrcmar@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    89651a3d
emulate.c 142 KB