All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxl: except Dom0 from setting PoD target
@ 2025-08-27  5:53 Jan Beulich
  2025-08-28  1:08 ` Jason Andryuk
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Beulich @ 2025-08-27  5:53 UTC (permalink / raw)
  To: xen-devel@lists.xenproject.org; +Cc: Anthony PERARD

Dom0 is never started in PoD mode, and hence it can at "best" do harm if
we try to set a PoD target for it.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/tools/libs/light/libxl_mem.c
+++ b/tools/libs/light/libxl_mem.c
@@ -306,7 +306,7 @@ retry_transaction:
         }
     }
 
-    if (d_config.c_info.type != LIBXL_DOMAIN_TYPE_PV) {
+    if (domid && d_config.c_info.type != LIBXL_DOMAIN_TYPE_PV) {
         r = xc_domain_set_pod_target(ctx->xch, domid,
                 (new_target_memkb + size) / 4, NULL, NULL, NULL);
         if (r != 0) {


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-09-08 12:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-27  5:53 [PATCH] libxl: except Dom0 from setting PoD target Jan Beulich
2025-08-28  1:08 ` Jason Andryuk
2025-08-28  6:05   ` Jan Beulich
2025-09-08 12:46   ` Anthony PERARD

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.