diff options
author | Gleb Natapov <gleb@redhat.com> | 2013-01-30 16:45:02 +0200 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2013-02-04 23:24:28 -0200 |
commit | 2c9afa52ef081334925905d6370d36b6602c328c (patch) | |
tree | 7d79e7a1bc814f52f7daeef14c654ad67d7ca01f /arch/x86/kvm/x86.c | |
parent | 9bb4f6b15ec038ab9afcf346aa6a590406ad6c17 (diff) | |
download | op-kernel-dev-2c9afa52ef081334925905d6370d36b6602c328c.zip op-kernel-dev-2c9afa52ef081334925905d6370d36b6602c328c.tar.gz |
KVM: MMU: set base_role.nxe during mmu initialization.
Move base_role.nxe initialisation to where all other roles are initialized.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index cf512e70..373e17a 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -870,8 +870,6 @@ static int set_efer(struct kvm_vcpu *vcpu, u64 efer) kvm_x86_ops->set_efer(vcpu, efer); - vcpu->arch.mmu.base_role.nxe = (efer & EFER_NX) && !tdp_enabled; - /* Update reserved bits */ if ((efer ^ old_efer) & EFER_NX) kvm_mmu_reset_context(vcpu); |