Skip to contentSkip to conversation

x86: Fix AMD_SVM and INTEL_VMX dependency

PATCH In review Michal Orzel 3 participants 3 messages Sep 2, 2025 – Sep 5, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86: Fix AMD_SVM and INTEL_VMX dependency

Commit e3ed540f2e9f was meant to make AMD_SVM dependent on AMD and INTEL_VMX on INTEL. This dependency was reflected using 'if' next to a prompt which is incorrect as it 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). Fix it while keeping the possibility of e.g. enabling INTEL_VMX when INTEL is disabled.

Fixes e3ed540f2e9f ("x86/hvm: add HVM-specific Kconfig")

---
Changes in v2:
- change default instead (Jan)

---
 xen/arch/x86/hvm/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
xen/arch/x86/hvm/Kconfig +4 -4
index b903764bda0d..5cb9f2904255 100644
@@ -16,8 +16,8 @@ menuconfig HVM
 if HVM
 
 config AMD_SVM
-	bool "AMD-V" if AMD && EXPERT
-	default y
+	bool "AMD-V" if EXPERT
+	default AMD
 	help
 	  Enables virtual machine extensions on platforms that implement the
 	  AMD Virtualization Technology (AMD-V).
@@ -25,8 +25,8 @@ config AMD_SVM
 	  If in doubt, say Y.
 
 config INTEL_VMX
-	bool "Intel VT-x" if INTEL && EXPERT
-	default y
+	bool "Intel VT-x" if EXPERT
+	default INTEL
 	select ARCH_VCPU_IOREQ_COMPLETION
 	help
 	  Enables virtual machine extensions on platforms that implement the
Signature · 1 line
2.43.0
Acked-by on v2 1/1
#1 lore raw
Quoted 9 lines · Michal Orzel

Commit e3ed540f2e9f was meant to make AMD_SVM dependent on AMD and INTEL_VMX on INTEL. This dependency was reflected using 'if' next to a prompt which is incorrect as it 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). Fix it while keeping the possibility of e.g. enabling INTEL_VMX when INTEL is disabled.

Fixes e3ed540f2e9f ("x86/hvm: add HVM-specific Kconfig")
Reviewed-by Denis Mukhin on v2 1/1
#2 lore raw
In reply to Michal Orzel
Quoted 9 lines · Michal Orzel

Commit e3ed540f2e9f was meant to make AMD_SVM dependent on AMD and INTEL_VMX on INTEL. This dependency was reflected using 'if' next to a prompt which is incorrect as it 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). Fix it while keeping the possibility of e.g. enabling INTEL_VMX when INTEL is disabled.

Fixes e3ed540f2e9f ("x86/hvm: add HVM-specific Kconfig")