[Devel] [PATCH hci-8.1 v2 5/6] configs: turn off module-only subsystems in the User Mode Linux config

Konstantin Khorenko khorenko at virtuozzo.com
Tue Oct 27 01:34:23 MSK 2026


A KUnit test can be built in only if what it depends on is. Where our
kernel ships that as a module only, the test stays a module in the um
config as well, and UML loads no modules, so it never runs.

Such a test cannot be turned off itself under KUNIT_ALL_TESTS, as it
hides its prompt, but its subsystem can, and a module is of no use in
UML anyway. Turn off:

- CFG80211, with mac80211 and iwlwifi
- DRM_XE and DRM_VKMS
- HID_UCLOGIC
- HSR
- RPCSEC_GSS_KRB5, and NFSD, whose NFSD_V4 selects it

Their tests stay with the modules mode of the hci-kunit test on the
real kernel, except DRM_XE_KUNIT_TEST, which our kernel does not build.
No KUnit test is left a module in UML, and the next commit checks that
at build time.

https://virtuozzo.atlassian.net/browse/VSTOR-143636
https://virtuozzo.atlassian.net/browse/VSTOR-148112

Feature: KUnit tests on User Mode Linux
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 redhat/configs/custom-overrides/generic/um/CONFIG_CFG80211          | 1 +
 redhat/configs/custom-overrides/generic/um/CONFIG_DRM_VKMS          | 1 +
 redhat/configs/custom-overrides/generic/um/CONFIG_DRM_XE            | 1 +
 redhat/configs/custom-overrides/generic/um/CONFIG_DRM_XE_KUNIT_TEST | 1 -
 redhat/configs/custom-overrides/generic/um/CONFIG_HID_UCLOGIC       | 1 +
 redhat/configs/custom-overrides/generic/um/CONFIG_HSR               | 1 +
 redhat/configs/custom-overrides/generic/um/CONFIG_NFSD              | 1 +
 redhat/configs/custom-overrides/generic/um/CONFIG_RPCSEC_GSS_KRB5   | 1 +
 8 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/redhat/configs/custom-overrides/generic/um/CONFIG_CFG80211 b/redhat/configs/custom-overrides/generic/um/CONFIG_CFG80211
new file mode 100644
index 0000000000000..5051825d64207
--- /dev/null
+++ b/redhat/configs/custom-overrides/generic/um/CONFIG_CFG80211
@@ -0,0 +1 @@
+# CONFIG_CFG80211 is not set
diff --git a/redhat/configs/custom-overrides/generic/um/CONFIG_DRM_VKMS b/redhat/configs/custom-overrides/generic/um/CONFIG_DRM_VKMS
new file mode 100644
index 0000000000000..36903b31ce381
--- /dev/null
+++ b/redhat/configs/custom-overrides/generic/um/CONFIG_DRM_VKMS
@@ -0,0 +1 @@
+# CONFIG_DRM_VKMS is not set
diff --git a/redhat/configs/custom-overrides/generic/um/CONFIG_DRM_XE b/redhat/configs/custom-overrides/generic/um/CONFIG_DRM_XE
new file mode 100644
index 0000000000000..dcf3a543d5adb
--- /dev/null
+++ b/redhat/configs/custom-overrides/generic/um/CONFIG_DRM_XE
@@ -0,0 +1 @@
+# CONFIG_DRM_XE is not set
diff --git a/redhat/configs/custom-overrides/generic/um/CONFIG_DRM_XE_KUNIT_TEST b/redhat/configs/custom-overrides/generic/um/CONFIG_DRM_XE_KUNIT_TEST
deleted file mode 100644
index 9ac6e86e799de..0000000000000
--- a/redhat/configs/custom-overrides/generic/um/CONFIG_DRM_XE_KUNIT_TEST
+++ /dev/null
@@ -1 +0,0 @@
-CONFIG_DRM_XE_KUNIT_TEST=m
diff --git a/redhat/configs/custom-overrides/generic/um/CONFIG_HID_UCLOGIC b/redhat/configs/custom-overrides/generic/um/CONFIG_HID_UCLOGIC
new file mode 100644
index 0000000000000..2d0d8b8d1a683
--- /dev/null
+++ b/redhat/configs/custom-overrides/generic/um/CONFIG_HID_UCLOGIC
@@ -0,0 +1 @@
+# CONFIG_HID_UCLOGIC is not set
diff --git a/redhat/configs/custom-overrides/generic/um/CONFIG_HSR b/redhat/configs/custom-overrides/generic/um/CONFIG_HSR
new file mode 100644
index 0000000000000..9a440220af282
--- /dev/null
+++ b/redhat/configs/custom-overrides/generic/um/CONFIG_HSR
@@ -0,0 +1 @@
+# CONFIG_HSR is not set
diff --git a/redhat/configs/custom-overrides/generic/um/CONFIG_NFSD b/redhat/configs/custom-overrides/generic/um/CONFIG_NFSD
new file mode 100644
index 0000000000000..940a30f0b4993
--- /dev/null
+++ b/redhat/configs/custom-overrides/generic/um/CONFIG_NFSD
@@ -0,0 +1 @@
+# CONFIG_NFSD is not set
diff --git a/redhat/configs/custom-overrides/generic/um/CONFIG_RPCSEC_GSS_KRB5 b/redhat/configs/custom-overrides/generic/um/CONFIG_RPCSEC_GSS_KRB5
new file mode 100644
index 0000000000000..ea3349cb16914
--- /dev/null
+++ b/redhat/configs/custom-overrides/generic/um/CONFIG_RPCSEC_GSS_KRB5
@@ -0,0 +1 @@
+# CONFIG_RPCSEC_GSS_KRB5 is not set

-- 
2.43.0



More information about the Devel mailing list