]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: SVM: Fix EFER.LME being stripped
authorZachary Amsden <zamsden@redhat.com>
Thu, 27 May 2010 01:09:43 +0000 (15:09 -1000)
committerAvi Kivity <avi@redhat.com>
Thu, 27 May 2010 09:31:34 +0000 (12:31 +0300)
commited9991d8e61bfb7d70a4ce0bda19bc0051c0011f
tree6fc6964a8cb7a68c3cb54e0b79ca5942123295fa
parentbaf9838ceb99df031c82ed187c47e457e0836945
KVM: SVM: Fix EFER.LME being stripped

Must set VCPU register to be the guest notion of EFER even if that
setting is not valid on hardware.  This was masked by the set in
set_efer until 7657fd5ace88e8092f5f3a84117e093d7b893f26 broke that.
Fix is simply to set the VCPU register before stripping bits.

Signed-off-by: Zachary Amsden <zamsden@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c