Fix two tangentially related bugs that manifest when the guest's long mode capabilities diverges from the host kernel's support, i.e. a 32-bit vCPU running under 64-bit KVM, or a (not-actually-supported) 64-bit vCPU running under 32-bit KVM. Sean Christopherson (2): KVM: x86: Don't clear EFER during SMM transitions for 32-bit vCPU KVM: x86: Always use 32-bit SMRAM save state for 32-bit kernels arch/x86/kvm/emulate.c | 31 +++++++++++++++++++++---------- arch/x86/kvm/x86.c | 10 ++++++---- 2 files changed, 27 insertions(+), 14 deletions(-) -- 2.21.0