aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-10-11 08:23:39 -0400
committerAvi Kivity <avi@redhat.com>2011-01-02 05:05:15 -0500
commit010c520e20413dfd567d568aba2b7238acd37e33 (patch)
tree35ec0e11d22e09ee106835788bd68f47475edbab /arch
parentd0dfc6b74a0c6e9ee46b62713256e2b025244d3c (diff)
KVM: Don't reset mmu context unnecessarily when updating EFER
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index b989e1f1e5d3..c05d47701292 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -830,7 +830,6 @@ static int set_efer(struct kvm_vcpu *vcpu, u64 efer)
830 kvm_x86_ops->set_efer(vcpu, efer); 830 kvm_x86_ops->set_efer(vcpu, efer);
831 831
832 vcpu->arch.mmu.base_role.nxe = (efer & EFER_NX) && !tdp_enabled; 832 vcpu->arch.mmu.base_role.nxe = (efer & EFER_NX) && !tdp_enabled;
833 kvm_mmu_reset_context(vcpu);
834 833
835 /* Update reserved bits */ 834 /* Update reserved bits */
836 if ((efer ^ old_efer) & EFER_NX) 835 if ((efer ^ old_efer) & EFER_NX)