coco/tdx-host: add Kconfig description
Subsystems (2)
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
@@ -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
[email protected]
AI reviewThank 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
Kconfigdescriptiondrivers/virt/coco/tdx-host/Kconfig +1
-1@@ -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
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
Signed-off-by Dmitry Voytik <[email protected]>
Signature · 1 line
Kiryl Shutsemau / Kirill A. Shutemov