[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v3 06/16] 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@xxxxxxxxxx> --- tools/libxl/libxl_mem.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tools/libxl/libxl_mem.c b/tools/libxl/libxl_mem.c index e551e09fed..448a2af8fd 100644 --- a/tools/libxl/libxl_mem.c +++ b/tools/libxl/libxl_mem.c @@ -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), -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |