xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] libxl: add stdvga video memory setting with upstream qemu
@ 2014-05-09 13:04 Fabio Fantoni
  2014-05-15 15:58 ` Ian Campbell
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Fabio Fantoni @ 2014-05-09 13:04 UTC (permalink / raw)
  To: xen-devel
  Cc: anthony.perard, Fabio Fantoni, Ian.Jackson, Ian.Campbell,
	Stefano.Stabellini

Setting video memory of stdvga with upstream qemu, already
present on qemu traditional but missed in upstream qemu.
This patch add missed qemu parameters only.
Seems no docs modifications needed for commit
13d13a45d0591fc195666ea20ddf8781a0367e88

Signed-off-by: Fabio Fantoni <fabio.fantoni@m2r.biz>

---

Changes in v2:
Improved commit message

Note:
I think that this patch can be also backported to xen 4.4.
---
 tools/libxl/libxl_dm.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index 90f19b7..51ab2bf 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -505,7 +505,9 @@ 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_append_pair(dm_args, "-device", "VGA");
+            flexarray_append_pair(dm_args, "-device",
+                GCSPRINTF("VGA,vgamem_mb=%d",
+                libxl__sizekb_to_mb(b_info->video_memkb)));
             break;
         case LIBXL_VGA_INTERFACE_TYPE_CIRRUS:
             flexarray_append_pair(dm_args, "-device",
-- 
1.7.9.5

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

end of thread, other threads:[~2014-05-19 12:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-09 13:04 [PATCH v2] libxl: add stdvga video memory setting with upstream qemu Fabio Fantoni
2014-05-15 15:58 ` Ian Campbell
2014-05-15 15:59 ` Ian Campbell
2014-05-15 16:00 ` Ian Campbell
2014-05-19  8:44   ` Fabio Fantoni
2014-05-19 11:41     ` Ian Jackson
2014-05-09 12:55       ` [PATCH v2] libxl: fix cirrus vga " Fabio Fantoni
2014-05-15 16:00         ` Ian Campbell
2014-05-19  8:43           ` Fabio Fantoni
2014-05-19 11:43             ` [PATCH v2] libxl: fix cirrus vga video memory setting with upstream qemu [and 2 more messages] Ian Jackson
2014-05-19 11:50       ` [PATCH v2] libxl: add stdvga video memory setting with upstream qemu Jan Beulich
2014-05-19 11:52         ` Ian Jackson
2014-05-19 12:07           ` Jan Beulich

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).