Skip to contentSkip to conversation

coco/tdx-host: add Kconfig description

PATCH In review Dmitry Voytik 3 participants 3 messages Oct 12

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 coco/tdx-host: add Kconfig description

Fix the issue when the driver always gets compiled as a module. How to reproduce the issue:

	make mrproper
	make defconfig
	./scripts/config \
	  -e CMA \
	  -e ALLOC \
	  -e KVM \
	  -e KVM_INTEL \
	  -e KVM_INTEL_TDX \
	  -e INTEL_TDX_HOST \
	  -e TDX_HOST_SERVICES \
	  --refresh
	make olddefconfig
	make mod2yesconfig
	grep '=m$' .config

	returns only this driver as module:
	  CONFIG_TDX_HOST_SERVICES=m

---
v2:
* changed per Kiryl's suggestion:
https://lore.kernel.org/lkml/aszHlWi_aLIh8r9F@thinkstation/
v1:
*https://lore.kernel.org/lkml/[email protected]/
---

---
 drivers/virt/coco/tdx-host/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virt/coco/tdx-host/Kconfig +1 -1
index 57d0c01a4357..fe018e00822b 100644
@@ -3,4 +3,4 @@ config TDX_HOST_SERVICES
 	depends on INTEL_TDX_HOST
 	select FW_LOADER
 	select FW_UPLOAD
-	default m
+	default KVM_INTEL
Signature · 1 line
2.56.0
#1 lore raw
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] kbuild: commit message claims to add Kconfig description but patch does not --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] kbuild: commit message claims to add Kconfig description but patch does not --

commit 424217cd6059405518820db0188355121477942b
Author: Dmitry Voytik <[email protected]>

coco/tdx-host: add Kconfig description

This commit updates the default value of the TDX_HOST_SERVICES Kconfig option from 'm' to 'KVM_INTEL'. It is intended to fix an issue where the driver always compiles as a module despite the user configuration.

drivers/virt/coco/tdx-host/Kconfig config TDX_HOST_SERVICES · line 6

Quoted 12 lines

coco/tdx-host: add Kconfig description

drivers/virt/coco/tdx-host/Kconfig +1 -1
index 57d0c01a43577..fe018e00822b3 100644
@@ -3,4 +3,4 @@ config TDX_HOST_SERVICES
 	depends on INTEL_TDX_HOST
 	select FW_LOADER
 	select FW_UPLOAD
-	default m
+	default KVM_INTEL

[Severity: Medium]
The commit subject claims to add a Kconfig description, which typically implies adding a prompt string (such as tristate "Intel TDX host services") to make the symbol visible in menuconfig. However, the patch only modifies the default value and leaves the symbol hidden.

Was the hunk adding the description accidentally dropped from this version of the patch, or should the commit subject be updated to reflect only the default value change?

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
maintainer Reviewed-by on v2 1/1
#2 lore raw
In reply to Dmitry Voytik
Quoted 20 lines · Dmitry Voytik

Fix the issue when the driver always gets compiled as a module. How to reproduce the issue:

	make mrproper
	make defconfig
	./scripts/config \
	  -e CMA \
	  -e ALLOC \
	  -e KVM \
	  -e KVM_INTEL \
	  -e KVM_INTEL_TDX \
	  -e INTEL_TDX_HOST \
	  -e TDX_HOST_SERVICES \
	  --refresh
	make olddefconfig
	make mod2yesconfig
	grep '=m$' .config

	returns only this driver as module:
	  CONFIG_TDX_HOST_SERVICES=m
Quoted 1 line
Signature · 1 line
  Kiryl Shutsemau / Kirill A. Shutemov