]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: Don't reset mmu context unnecessarily when updating EFER
authorAvi Kivity <avi@redhat.com>
Mon, 11 Oct 2010 12:23:39 +0000 (14:23 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 11 Oct 2010 12:23:39 +0000 (14:23 +0200)
The only bit of EFER that affects the mmu is NX, and this is already
accounted for (LME only takes effect when changing cr0).

Based on a patch by Hillf Danton.

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

index 7127a134d6fd65a09a9330f38095b39d7cf78299..f3f86b234d5269deed38eeb99a63533a8c6d8e31 100644 (file)
@@ -835,7 +835,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;
-       kvm_mmu_reset_context(vcpu);
 
        /* Update reserved bits */
        if ((efer ^ old_efer) & EFER_NX)