aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFabio Fantoni <fabio.fantoni@heliman.it>2013-02-15 13:32:26 +0000
committerFabio Fantoni <fabio.fantoni@heliman.it>2013-02-15 13:32:26 +0000
commitedb15bf83c43842edd0ed2a9a1e9c8daaebb4b45 (patch)
tree2e23141337abc89fa2a9fa2411d267f322df6dc4 /tools
parent174adc2c43293029c15ea043cf124722f37f51f7 (diff)
downloadxen-edb15bf83c43842edd0ed2a9a1e9c8daaebb4b45.tar.gz
xen-edb15bf83c43842edd0ed2a9a1e9c8daaebb4b45.tar.bz2
xen-edb15bf83c43842edd0ed2a9a1e9c8daaebb4b45.zip
tools/libxl: Added vga parameter for hvm domUs
Usage: vga="stdvga"|"cirrus" - Default option is cirrus. - Prints error and exit if unknown value is passed. - stdvga parameter is now deprecated. - Updated xl.cfg man. Signed-off-by: Fabio Fantoni <fabio.fantoni@heliman.it> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/libxl/xl_cmdimpl.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index 9c554ba040..003b12963d 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -1474,7 +1474,19 @@ skip_vfb:
#undef parse_extra_args
if (c_info->type == LIBXL_DOMAIN_TYPE_HVM) {
- if (!xlu_cfg_get_long(config, "stdvga", &l, 0))
+ if (!xlu_cfg_get_string (config, "vga", &buf, 0)) {
+ if (!strcmp(buf, "stdvga")) {
+ b_info->u.hvm.vga.kind
+ = LIBXL_VGA_INTERFACE_TYPE_STD;
+ } else if (!strcmp(buf, "cirrus")) {
+ b_info->u.hvm.vga.kind
+ = LIBXL_VGA_INTERFACE_TYPE_CIRRUS;
+ } else {
+ fprintf(stderr,
+ "Unknown vga \"%s\" specified\n", buf);
+ exit(1);
+ }
+ } else if (!xlu_cfg_get_long(config, "stdvga", &l, 0))
b_info->u.hvm.vga.kind = l ? LIBXL_VGA_INTERFACE_TYPE_STD :
LIBXL_VGA_INTERFACE_TYPE_CIRRUS;