|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [RFC 05/10] x86/traps: guard vmx specific functions with INTEL_VMX
The functions vmx_vmcs_enter() and vmx_vmcs_exit() are VT-x specific.
Guard their calls with INTEL_VMX.
No functional change intended.
Signed-off-by: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
---
xen/arch/x86/traps.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c
index cade9e12f8..77b4f772f2 100644
--- a/xen/arch/x86/traps.c
+++ b/xen/arch/x86/traps.c
@@ -694,7 +694,7 @@ void vcpu_show_execution_state(struct vcpu *v)
vcpu_pause(v); /* acceptably dangerous */
-#ifdef CONFIG_HVM
+#ifdef CONFIG_INTEL_VMX
/*
* For VMX special care is needed: Reading some of the register state will
* require VMCS accesses. Engaging foreign VMCSes involves acquiring of a
@@ -732,7 +732,7 @@ void vcpu_show_execution_state(struct vcpu *v)
console_unlock_recursive_irqrestore(flags);
}
-#ifdef CONFIG_HVM
+#ifdef CONFIG_INTEL_VMX
if ( cpu_has_vmx && is_hvm_vcpu(v) )
vmx_vmcs_exit(v);
#endif
--
2.37.2
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |