projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0dfc6b
)
KVM: Don't reset mmu context unnecessarily when updating EFER
author
Avi Kivity
<avi@redhat.com>
Mon, 11 Oct 2010 12:23:39 +0000
(14:23 +0200)
committer
Avi Kivity
<avi@redhat.com>
Sun, 2 Jan 2011 10:05:15 +0000
(12:05 +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
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index b989e1f1e5d36b732d1d9c864f369b39a7459105..c05d477012925eeea8664514c16abad578e44c60 100644
(file)
--- 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)
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)