提交 a13b2905 编写于 作者: A Artur Puzio 提交者: Jim Fehlig

libxl: vga.kind none when no device specified

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: NArtur Puzio <contact@puzio.waw.pl>
Reviewed-by: NJim Fehlig <jfehlig@suse.com>
上级 2e93af27
...@@ -2404,6 +2404,7 @@ libxlMakeVideo(virDomainDefPtr def, libxl_domain_config *d_config) ...@@ -2404,6 +2404,7 @@ libxlMakeVideo(virDomainDefPtr def, libxl_domain_config *d_config)
b_info->video_memkb = def->videos[0]->vram; b_info->video_memkb = def->videos[0]->vram;
} else { } else {
libxl_defbool_set(&b_info->u.hvm.nographic, 1); libxl_defbool_set(&b_info->u.hvm.nographic, 1);
b_info->u.hvm.vga.kind = LIBXL_VGA_INTERFACE_TYPE_NONE;
} }
return 0; return 0;
......
...@@ -20,6 +20,9 @@ ...@@ -20,6 +20,9 @@
"acpi": "True", "acpi": "True",
"acpi_firmware": "/path/to/slic.dat", "acpi_firmware": "/path/to/slic.dat",
"nographic": "True", "nographic": "True",
"vga": {
"kind": "none"
},
"vnc": { "vnc": {
"enable": "False" "enable": "False"
}, },
......
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
"apic": "True", "apic": "True",
"acpi": "True", "acpi": "True",
"nographic": "True", "nographic": "True",
"vga": {
"kind": "none"
},
"vnc": { "vnc": {
"enable": "False" "enable": "False"
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册