]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: zero EFER on INIT
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Oct 2015 09:30:19 +0000 (11:30 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Oct 2015 09:34:45 +0000 (11:34 +0200)
commit541dcd2a44983181004ce74f5f5896287677990b
tree4bf44c8670a54a417c5738149290e31aaeae7916
parent389b5e014736952719e548b0591406197a42005b
kvm: x86: zero EFER on INIT

Not zeroing EFER means that a 32-bit firmware cannot enter paging mode
without clearing EFER.LME first (which it should not know about).
Yang Zhang from Intel confirmed that the manual is wrong and EFER is
cleared to zero on INIT.

Fixes: 6732863845a57d8197cb1d2254d9328b91356a20
Cc: stable@vger.kernel.org
Cc: Yang Z Zhang <yang.z.zhang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c