]> xenbits.xensource.com Git - libvirt.git/commitdiff
libxl: vga.kind none when no device specified
authorArtur Puzio <contact@puzio.waw.pl>
Thu, 7 May 2020 11:24:35 +0000 (13:24 +0200)
committerJim Fehlig <jfehlig@suse.com>
Thu, 7 May 2020 21:42:39 +0000 (15:42 -0600)
When no video device is specified in config we should set both
hvm.nographic to 1 and hvm.vga.kind to NONE.

Without hvm.vga.kind=LIBXL_VGA_INTERFACE_TYPE_NONE both -nographic and
-device 'cirrus-vga' are on qemu cmdline.

Signed-off-by: Artur Puzio <contact@puzio.waw.pl>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_conf.c
tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
tests/libxlxml2domconfigdata/fullvirt-cpuid.json

index 458dfc23990cf437f2a770b1afec5753d7f9cfc7..a0059fc2a7e266ef84ab64599f7475dab72dfa25 100644 (file)
@@ -2404,6 +2404,7 @@ libxlMakeVideo(virDomainDefPtr def, libxl_domain_config *d_config)
         b_info->video_memkb = def->videos[0]->vram;
     } else {
         libxl_defbool_set(&b_info->u.hvm.nographic, 1);
+        b_info->u.hvm.vga.kind = LIBXL_VGA_INTERFACE_TYPE_NONE;
     }
 
     return 0;
index e804389fea54c058d1e9be3b32a89cbb8c73e692..f16b4a971a2c6751564f605c3d57667685ecec9a 100644 (file)
@@ -20,6 +20,9 @@
             "acpi": "True",
             "acpi_firmware": "/path/to/slic.dat",
             "nographic": "True",
+            "vga": {
+                "kind": "none"
+            },
             "vnc": {
                 "enable": "False"
             },
index d46b464642524a239b8746afe21bff1c60fc9745..ddc423bca7af9f59272774dec93f665957a05ec6 100644 (file)
@@ -27,6 +27,9 @@
             "apic": "True",
             "acpi": "True",
             "nographic": "True",
+            "vga": {
+                "kind": "none"
+            },
             "vnc": {
                 "enable": "False"
             },