From ce845ad340bc0a3aa2283fb64d564a9fa1b91f1e Mon Sep 17 00:00:00 2001 From: Omar Sandoval Date: Thu, 2 Sep 2021 09:12:19 -0700 Subject: [PATCH] vmtest: add virtio-rng and cgroup Kconfig options We're seeing some hangs waiting for entropy when running tests, so let's enable the virtio-rng module. While we're doing a rebuild, we might as well enable cgroups so that we can finally run those tests. Signed-off-by: Omar Sandoval --- vmtest/kbuild.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vmtest/kbuild.py b/vmtest/kbuild.py index a646c1580..b02cb61d6 100644 --- a/vmtest/kbuild.py +++ b/vmtest/kbuild.py @@ -23,7 +23,7 @@ logger = logging.getLogger(__name__) -KERNEL_LOCALVERSION = "-vmtest5" +KERNEL_LOCALVERSION = "-vmtest6" def kconfig() -> str: @@ -59,6 +59,8 @@ def kconfig() -> str: CONFIG_TMPFS_XATTR=y CONFIG_VIRTIO_CONSOLE=y CONFIG_VIRTIO_PCI=y +CONFIG_HW_RANDOM=m +CONFIG_HW_RANDOM_VIRTIO=m # drgn needs /proc/kcore for live debugging. CONFIG_PROC_KCORE=y @@ -79,6 +81,9 @@ def kconfig() -> str: # For block tests. CONFIG_BLK_DEV_LOOP=m +# For cgroup tests. +CONFIG_CGROUPS=y + # For kconfig tests. CONFIG_IKCONFIG=m CONFIG_IKCONFIG_PROC=y