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>
This commit is contained in:
Fabio Fantoni committed 2013-02-15 13:32:26 +00:00
1 parent 174adc2c43
commit edb15bf83c
2 files changed
+20 -2

No files matched your search

+7 -1
View File
@@ -998,7 +998,7 @@ option (see below).
The default amount of video ram for stdvga is 8MB which is sufficient
for e.g. 1600x1200 at 32bpp.
When using the emulated Cirrus graphics card (B<stdvga=0>)
When using the emulated Cirrus graphics card (B<vga="cirrus">)
the amount of video ram is fixed at 4MB which is sufficient
for 1024x768 at 32 bpp.
@@ -1014,6 +1014,12 @@ emulated graphics device. The default is false which means to emulate
a Cirrus Logic GD5446 VGA card. If your guest supports VBE 2.0 or
later (e.g. Windows XP onwards) then you should enable this.
stdvga supports more video ram and bigger resolutions than Cirrus.
This option is deprecated, use vga="stdvga" instead.
=item B<vga="STRING">
Selects the emulated video card (stdvga|cirrus).
The default is cirrus.
=item B<vnc=BOOLEAN>
+13 -1
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.