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:
49e190e
)
KVM: nVMX: don't reset kvm mmu twice
author
Wanpeng Li
<
[email protected]
>
Sun, 12 Mar 2017 08:53:52 +0000
(
00:53
-0800)
committer
Radim Krčmář
<
[email protected]
>
Mon, 20 Mar 2017 15:25:06 +0000
(16:25 +0100)
kvm mmu is reset once successfully loading CR3 as part of emulating vmentry
in nested_vmx_load_cr3(). We should not reset kvm mmu twice.
Cc: Paolo Bonzini <
[email protected]
>
Cc: Radim Krčmář <
[email protected]
>
Signed-off-by: Wanpeng Li <
[email protected]
>
Signed-off-by: Radim Krčmář <
[email protected]
>
arch/x86/kvm/vmx.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/vmx.c
b/arch/x86/kvm/vmx.c
index e7ec88961b1a45b081f750b64edd7aaff4827c6b..c66436530a93af66063f7d6eee668c0e226cac90 100644
(file)
--- a/
arch/x86/kvm/vmx.c
+++ b/
arch/x86/kvm/vmx.c
@@
-10287,8
+10287,6
@@
static int prepare_vmcs02(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12,
entry_failure_code))
return 1;
- kvm_mmu_reset_context(vcpu);
-
if (!enable_ept)
vcpu->arch.walk_mmu->inject_page_fault = vmx_inject_page_fault_nested;