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)
commit5690891bcec5fcfda38da974ffa5488e36a59811
tree4bf44c8670a54a417c5738149290e31aaeae7916
parentf33143d80907602deb1b96db42da93507ed03b31
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: d28bc9dd25ce023270d2e039e7c98d38ecbf7758
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