diff options
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index df866684bad1..007fadd62529 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -523,6 +523,9 @@ static void set_efer(struct kvm_vcpu *vcpu, u64 efer) | |||
523 | efer |= vcpu->arch.shadow_efer & EFER_LMA; | 523 | efer |= vcpu->arch.shadow_efer & EFER_LMA; |
524 | 524 | ||
525 | vcpu->arch.shadow_efer = efer; | 525 | vcpu->arch.shadow_efer = efer; |
526 | |||
527 | vcpu->arch.mmu.base_role.nxe = (efer & EFER_NX) && !tdp_enabled; | ||
528 | kvm_mmu_reset_context(vcpu); | ||
526 | } | 529 | } |
527 | 530 | ||
528 | void kvm_enable_efer_bits(u64 mask) | 531 | void kvm_enable_efer_bits(u64 mask) |