libxl: except Dom0 from setting PoD target

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>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
Acked-by: Anthony PERARD <anthony.perard@vates.tech>
This commit is contained in:
Jan Beulich committed 2025-09-09 08:16:19 +02:00
1 parent d301d718a4
commit 489a7c50c0
1 file changed
+1 -1
+1 -1
View File
@@ -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) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.