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:
0e1252d
)
KVM: VMX: call ept_sync_global() with enable_ept only
author
David Hildenbrand
<david@redhat.com>
Thu, 24 Aug 2017 18:51:29 +0000
(20:51 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 12 Oct 2017 12:01:52 +0000
(14:01 +0200)
ept_* function should only be called with enable_ept being set.
Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/vmx.c
b/arch/x86/kvm/vmx.c
index c757070a32a71638be79a0cfa25f5c4377cd5274..7d944d3feb8a68ab1f9749a5d429ddaa5a307a74 100644
(file)
--- a/
arch/x86/kvm/vmx.c
+++ b/
arch/x86/kvm/vmx.c
@@
-3542,7
+3542,8
@@
static int hardware_enable(void)
wrmsrl(MSR_IA32_FEATURE_CONTROL, old | test_bits);
}
kvm_cpu_vmxon(phys_addr);
- ept_sync_global();
+ if (enable_ept)
+ ept_sync_global();
return 0;
}