From 362926279f04c9ab04a32ce41e294de82a4d9795 Mon Sep 17 00:00:00 2001 From: "Alexander M. Merritt" Date: Thu, 15 Oct 2026 19:25:36 -0500 Subject: [PATCH] fix(xen/balloon): register the OOM deflate notifier only in domUs Signed-off-by: Alexander M. Merritt (cherry picked from commit 2cae6397bbf9bdb110f8542a3c953c0b89666510) --- drivers/xen/balloon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c index 692dca2eccbc58..d5444e699acce2 100644 --- a/drivers/xen/balloon.c +++ b/drivers/xen/balloon.c @@ -1142,7 +1142,8 @@ static int __init balloon_init(void) /* Init the xen-balloon driver. */ xen_balloon_init(); - register_oom_notifier(&balloon_oom_nb); + if (!xen_initial_domain()) + register_oom_notifier(&balloon_oom_nb); return 0;