path: root/arch/x86/kvm/emulate.c
diff options
authorMaxim Levitsky <>2020-08-27 19:27:20 +0300
committerPaolo Bonzini <>2020-09-12 12:21:43 -0400
commit3ebb5d2617fbf45567975f878232178c5b292d58 (patch)
treef35f5e852cb09aea39105ff567448437fa99293d /arch/x86/kvm/emulate.c
parent772b81bb2f9b191a046ba7bba1f232eb7b109b84 (diff)
KVM: nSVM: more strict SMM checks when returning to nested guest
* check that guest is 64 bit guest, otherwise the SVM related fields in the smm state area are not defined * If the SMM area indicates that SMM interrupted a running guest, check that EFER.SVME which is also saved in this area is set, otherwise the guest might have tampered with SMM save area, and so indicate emulation failure which should triple fault the guest. * Check that that guest CPUID supports SVM (due to the same issue as above) Signed-off-by: Maxim Levitsky <> Message-Id: <> Signed-off-by: Paolo Bonzini <>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
0 files changed, 0 insertions, 0 deletions