* [PATCH] xen: enable XEN_UNPOPULATED_ALLOC as part of xen.config
@ 2025-05-14 9:20 Roger Pau Monne
2025-05-14 15:55 ` Jürgen Groß
0 siblings, 1 reply; 2+ messages in thread
From: Roger Pau Monne @ 2025-05-14 9:20 UTC (permalink / raw)
To: xen-devel, linux-kernel
Cc: jason.andryuk, Roger Pau Monne, Juergen Gross,
Stefano Stabellini, Oleksandr Tyshchenko
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.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
kernel/configs/xen.config | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/configs/xen.config b/kernel/configs/xen.config
index 6878b9a49be8..1875a0a5047a 100644
--- a/kernel/configs/xen.config
+++ b/kernel/configs/xen.config
@@ -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
--
2.48.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] xen: enable XEN_UNPOPULATED_ALLOC as part of xen.config
2025-05-14 9:20 [PATCH] xen: enable XEN_UNPOPULATED_ALLOC as part of xen.config Roger Pau Monne
@ 2025-05-14 15:55 ` Jürgen Groß
0 siblings, 0 replies; 2+ messages in thread
From: Jürgen Groß @ 2025-05-14 15:55 UTC (permalink / raw)
To: Roger Pau Monne, xen-devel, linux-kernel
Cc: jason.andryuk, Stefano Stabellini, Oleksandr Tyshchenko
[-- Attachment #1.1.1: Type: text/plain, Size: 433 bytes --]
On 14.05.25 11:20, Roger Pau Monne wrote:
> 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.
>
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Juergen
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3743 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-14 15:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-14 9:20 [PATCH] xen: enable XEN_UNPOPULATED_ALLOC as part of xen.config Roger Pau Monne
2025-05-14 15:55 ` Jürgen Groß
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®