Commit e3ed540f2e9f was meant to make AMD_SVM dependent on AMD and
INTEL_VMX on INTEL. Such dependency should be done using 'depends on'
and not 'if' next to prompt that deals only with the visibility of the
given Kconfig option. This makes it impossible to e.g. disable INTEL_VMX
when INTEL is disabled (option is hidden).
Fixes: e3ed540f2e9f ("x86/hvm: add HVM-specific Kconfig")
Signed-off-by: Michal Orzel <[email protected]>
---
xen/arch/x86/hvm/Kconfig | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/xen/arch/x86/hvm/Kconfig b/xen/arch/x86/hvm/Kconfig
index b903764bda0d..c85889ea8642 100644
--- a/xen/arch/x86/hvm/Kconfig
+++ b/xen/arch/x86/hvm/Kconfig
@@ -16,7 +16,8 @@ menuconfig HVM
if HVM
config AMD_SVM
- bool "AMD-V" if AMD && EXPERT
+ bool "AMD-V" if EXPERT
+ depends on AMD
default y
help
Enables virtual machine extensions on platforms that implement the
@@ -25,7 +26,8 @@ config AMD_SVM
If in doubt, say Y.
config INTEL_VMX
- bool "Intel VT-x" if INTEL && EXPERT
+ bool "Intel VT-x" if EXPERT
+ depends on INTEL
default y
select ARCH_VCPU_IOREQ_COMPLETION
help
--
2.43.0