From: Roger Pau Monne Date: Tue, 9 Jan 2018 15:12:15 +0000 (+0000) Subject: xl: add PVH as a guest type X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0f1d3c784e059b924e315316a0948f5ceb5c34c1;p=people%2Froyger%2Fxen.git xl: add PVH as a guest type And remove device model "none". Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson Ported over xl_cmdimpl.c -> xl_parse.c movement --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 0490048179..c2e6952fd2 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1373,6 +1373,8 @@ static void parse_config_data(const char *config_source, c_info->type = LIBXL_DOMAIN_TYPE_HVM; else if (!strncmp(buf, "pv", strlen(buf))) c_info->type = LIBXL_DOMAIN_TYPE_PV; + else if (!strncmp(buf, "pvh", strlen(buf))) + c_info->type = LIBXL_DOMAIN_TYPE_PVH; else { fprintf(stderr, "Invalid domain type %s.\n", buf); exit(1); @@ -1799,6 +1801,7 @@ static void parse_config_data(const char *config_source, } break; + case LIBXL_DOMAIN_TYPE_PVH: case LIBXL_DOMAIN_TYPE_PV: { /* @@ -2408,8 +2411,6 @@ skip_usbdev: } else if (!strcmp(buf, "qemu-xen")) { b_info->device_model_version = LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN; - } else if (!strcmp(buf, "none")) { - b_info->device_model_version = LIBXL_DEVICE_MODEL_VERSION_NONE; } else { fprintf(stderr, "Unknown device_model_version \"%s\" specified\n", buf);