xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libxl: new parameters for upstream qemu's vga interfaces
@ 2013-09-30 10:12 Fabio Fantoni
  2013-10-10  9:26 ` Fabio Fantoni
  0 siblings, 1 reply; 16+ messages in thread
From: Fabio Fantoni @ 2013-09-30 10:12 UTC (permalink / raw)
  To: xen-devel
  Cc: George.Dunlap, Fabio Fantoni, Ian.Jackson, Ian.Campbell,
	Stefano.Stabellini

Change the qemu parameters for upstream qemu vgas to the
new ones (-device), introduced some years ago.

Signed-off-by: Fabio Fantoni <fabio.fantoni@m2r.biz>
---
 tools/libxl/libxl_dm.c |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index 43c3bec..2c6f5d9 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -486,15 +486,13 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
 
         switch (b_info->u.hvm.vga.kind) {
         case LIBXL_VGA_INTERFACE_TYPE_STD:
-            flexarray_vappend(dm_args, "-vga", "std", NULL);
+            flexarray_append_pair(dm_args, "-device", "VGA");
             break;
         case LIBXL_VGA_INTERFACE_TYPE_CIRRUS:
-            flexarray_vappend(dm_args, "-vga", "cirrus", NULL);
-            if (b_info->video_memkb) {
-                flexarray_vappend(dm_args, "-global",
-                    GCSPRINTF("vga.vram_size_mb=%d",
-                    libxl__sizekb_to_mb(b_info->video_memkb)), NULL);
-            }
+            flexarray_append_pair(dm_args, "-device", "cirrus-vga");
+            flexarray_append_pair(dm_args, "-global",
+                GCSPRINTF("vga.vram_size_mb=%d",
+                libxl__sizekb_to_mb(b_info->video_memkb)));
             break;
         }
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-11-06 17:09 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-30 10:12 [PATCH] libxl: new parameters for upstream qemu's vga interfaces Fabio Fantoni
2013-10-10  9:26 ` Fabio Fantoni
2013-10-10  9:32   ` Ian Campbell
2013-10-10 10:09     ` Fabio Fantoni
2013-10-10 10:43       ` Stefano Stabellini
2013-10-10 11:58         ` Fabio Fantoni
2013-10-10 10:51       ` Sander Eikelenboom
2013-10-10 12:29         ` Fabio Fantoni
2013-10-10 12:36           ` Sander Eikelenboom
2013-10-10 14:39             ` Fabio Fantoni
2013-10-16 12:03               ` Fabio Fantoni
2013-10-28 12:57                 ` Fabio Fantoni
2013-10-28 16:45                   ` Stefano Stabellini
2013-10-29  8:51                     ` Fabio Fantoni
2013-11-04 17:52                       ` Ian Campbell
2013-11-06 17:09                       ` Stefano Stabellini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).