Skip to contentSkip to conversation

xen: enable XEN_UNPOPULATED_ALLOC as part of xen.config

PATCH In review Roger Pau Monne 2 participants 2 messages May 14, 2025 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: enable XEN_UNPOPULATED_ALLOC as part of xen.config

PVH dom0 is useless without XEN_UNPOPULATED_ALLOC, as otherwise it will very likely balloon out all dom0 memory to map foreign and grant pages.

Enable it by default as part of xen.config. This also requires enabling MEMORY_HOTREMOVE and ZONE_DEVICE.

---
 kernel/configs/xen.config | 3 +++
 1 file changed, 3 insertions(+)
kernel/configs/xen.config +3 -0
index 6878b9a49be8..1875a0a5047a 100644
@@ -13,6 +13,8 @@ CONFIG_SCSI=y
 CONFIG_FB=y
 CONFIG_INPUT_MISC=y
 CONFIG_MEMORY_HOTPLUG=y
+CONFIG_MEMORY_HOTREMOVE=y
+CONFIG_ZONE_DEVICE=y
 CONFIG_TTY=y
 # Technically not required but otherwise produces
 # pretty useless systems starting from allnoconfig
@@ -47,3 +49,4 @@ CONFIG_XEN_GNTDEV=m
 CONFIG_XEN_GRANT_DEV_ALLOC=m
 CONFIG_SWIOTLB_XEN=y
 CONFIG_XEN_PRIVCMD=m
+CONFIG_XEN_UNPOPULATED_ALLOC=y
Signature · 1 line
2.48.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Roger Pau Monne

PVH dom0 is useless without XEN_UNPOPULATED_ALLOC, as otherwise it will very likely balloon out all dom0 memory to map foreign and grant pages.

Enable it by default as part of xen.config. This also requires enabling MEMORY_HOTREMOVE and ZONE_DEVICE.

Juergen