diff mbox

[18/19] xl: add PVH as a guest type

Message ID 20170822094920.70151-19-roger.pau@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Roger Pau Monne Aug. 22, 2017, 9:49 a.m. UTC
And remove device model "none".

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
---
 tools/xl/xl_parse.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c
index 84380efc72..29f52876cf 100644
--- a/tools/xl/xl_parse.c
+++ b/tools/xl/xl_parse.c
@@ -866,6 +866,8 @@  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);
@@ -1283,6 +1285,7 @@  void parse_config_data(const char *config_source,
         }
 
         break;
+    case LIBXL_DOMAIN_TYPE_PVH:
     case LIBXL_DOMAIN_TYPE_PV:
     {
         /*
@@ -1960,8 +1963,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);