mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
libxl: don't set PoD target for PV guests
Previously PoD target was unconditionally set for both PV and HVM guests, but in fact PoD has always been an HVM (now PVH as well) only feature. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
e39a9148ed
commit
b824478103
1 file changed
+12
-10
+12
-10
@@ -298,16 +298,18 @@ retry_transaction:
|
||||
}
|
||||
}
|
||||
|
||||
r = xc_domain_set_pod_target(ctx->xch, domid,
|
||||
(new_target_memkb + size) / 4, NULL, NULL, NULL);
|
||||
if (r != 0) {
|
||||
LOGED(ERROR, domid,
|
||||
"xc_domain_set_pod_target memkb=%"PRIu64" failed rc=%d\n",
|
||||
(new_target_memkb + size) / 4,
|
||||
r);
|
||||
abort_transaction = 1;
|
||||
rc = ERROR_FAIL;
|
||||
goto out;
|
||||
if (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) {
|
||||
LOGED(ERROR, domid,
|
||||
"xc_domain_set_pod_target memkb=%"PRIu64" failed rc=%d\n",
|
||||
(new_target_memkb + size) / 4,
|
||||
r);
|
||||
abort_transaction = 1;
|
||||
rc = ERROR_FAIL;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
libxl__xs_printf(gc, t, GCSPRINTF("%s/memory/target", dompath),
|
||||
|
||||