KVM: x86: Check LMA bit before set_efer
authorSheng Yang <sheng@linux.intel.com>
Wed, 12 May 2010 08:40:40 +0000 (16:40 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 19 May 2010 08:41:09 +0000 (11:41 +0300)
commita3d204e28579427609c3d15d2310127ebaa47d94
treed4da68fd9437dab5b1444766c7367f81496ea4e1
parentf78e917688edbf1f14c318d2e50dc8e7dad20445
KVM: x86: Check LMA bit before set_efer

kvm_x86_ops->set_efer() would execute vcpu->arch.efer = efer, so the
checking of LMA bit didn't work.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c