From 5482f86cb05222d375d48efaba059d4e232ff022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 26 Dec 2022 14:01:09 +0100 Subject: [PATCH] Advertise memory hotplug support qmemman will rely on it soon (if available). QubesOS/qubes-issues#7956 --- kernel.spec.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel.spec.in b/kernel.spec.in index 0458157b..8e17de3f 100644 --- a/kernel.spec.in +++ b/kernel.spec.in @@ -217,6 +217,11 @@ if [ "$krel" != "%kernelrelease" ]; then exit 1 fi +if ! grep -q CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y .config; then + echo "Memory hotplug disabled!" >&2 + exit 1 +fi + make clean $MAKE_ARGS rm -f source @@ -519,6 +524,7 @@ if [ -e /usr/lib/dracut/modules.d/90qubes-vm-simple/xen-scrub-pages-supported ]; def_kernelopts="$def_kernelopts xen_scrub_pages=0" fi echo "$def_kernelopts " > %buildroot/%vm_install_dir/default-kernelopts-common.txt +touch %buildroot/%vm_install_dir/memory-hotplug-supported # Modules for Qubes VM mkdir -p %buildroot%vm_install_dir/modules @@ -695,6 +701,7 @@ exit 0 %attr(0644, root, root) %vm_install_dir/initramfs %attr(0644, root, root) %vm_install_dir/vmlinuz %attr(0644, root, root) %vm_install_dir/default-kernelopts-common.txt +%attr(0644, root, root) %vm_install_dir/memory-hotplug-supported %changelog @CHANGELOG@