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:
1aee47a
)
Revert "KVM: MMU: make kvm_mmu_reset_context() flush the guest TLB"
author
Marcelo Tosatti
<mtosatti@redhat.com>
Tue, 21 Jun 2011 17:00:10 +0000
(14:00 -0300)
committer
Avi Kivity
<avi@redhat.com>
Tue, 12 Jul 2011 10:16:41 +0000
(13:16 +0300)
This reverts commit
bee931d31e588b8eb86b7edee32fac2d16930cd7
.
TLB flush should be done lazily during guest entry, in
kvm_mmu_load().
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/mmu.c
b/arch/x86/kvm/mmu.c
index 9c629b54d36220dda63e0d911311899fdf9c95a0..da0f3b0810765e04de2eda2cd167d693f9f35a55 100644
(file)
--- a/
arch/x86/kvm/mmu.c
+++ b/
arch/x86/kvm/mmu.c
@@
-3054,18
+3054,8
@@
static void destroy_kvm_mmu(struct kvm_vcpu *vcpu)
int kvm_mmu_reset_context(struct kvm_vcpu *vcpu)
{
- int r;
-
destroy_kvm_mmu(vcpu);
- r = init_kvm_mmu(vcpu);
-
- if (r)
- goto err;
-
- kvm_mmu_sync_roots(vcpu);
- kvm_mmu_flush_tlb(vcpu);
-err:
- return r;
+ return init_kvm_mmu(vcpu);
}
EXPORT_SYMBOL_GPL(kvm_mmu_reset_context);