xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] libxl: set stdvga=1 by default when creating a hvm guest
@ 2012-06-26  6:02 Ren, Yongjie
  2012-06-26 13:32 ` Ian Campbell
  0 siblings, 1 reply; 12+ messages in thread
From: Ren, Yongjie @ 2012-06-26  6:02 UTC (permalink / raw)
  To: xen-devel@lists.xen.org; +Cc: Ian Jackson, Ian Campbell

[-- Attachment #1: Type: text/plain, Size: 1019 bytes --]

libxl: set stdvga=1 by default when creating a hvm guest

Most of the modern OSes (e.g. Windows XP, Windows 7, RHEL6.x, Ubuntu, Fedora) support VBE 2.0 or later.
So, select a standard VGA card with VBE as the default emulated graphics device.
It's also a workaround for the following bug.
http://bugzilla.xen.org/bugzilla/show_bug.cgi?id=1812

Signed-off-by: Yongjie Ren <yongjie.ren@intel.com>

diff -r e08cf97e76f0 tools/libxl/libxl_create.c
--- a/tools/libxl/libxl_create.c	Mon Jun 25 13:41:32 2012 +0200
+++ b/tools/libxl/libxl_create.c	Tue Jun 26 12:41:46 2012 +0800
@@ -248,7 +248,7 @@
             if (!b_info->u.hvm.boot) return ERROR_NOMEM;
         }
 
-        libxl_defbool_setdefault(&b_info->u.hvm.stdvga, false);
+        libxl_defbool_setdefault(&b_info->u.hvm.stdvga, true);
         libxl_defbool_setdefault(&b_info->u.hvm.vnc.enable, true);
         if (libxl_defbool_val(b_info->u.hvm.vnc.enable)) {
             libxl_defbool_setdefault(&b_info->u.hvm.vnc.findunused, true);


[-- Attachment #2: stdvga-libxl.patch --]
[-- Type: application/octet-stream, Size: 600 bytes --]

diff -r e08cf97e76f0 tools/libxl/libxl_create.c
--- a/tools/libxl/libxl_create.c	Mon Jun 25 13:41:32 2012 +0200
+++ b/tools/libxl/libxl_create.c	Tue Jun 26 12:41:46 2012 +0800
@@ -248,7 +248,7 @@
             if (!b_info->u.hvm.boot) return ERROR_NOMEM;
         }
 
-        libxl_defbool_setdefault(&b_info->u.hvm.stdvga, false);
+        libxl_defbool_setdefault(&b_info->u.hvm.stdvga, true);
         libxl_defbool_setdefault(&b_info->u.hvm.vnc.enable, true);
         if (libxl_defbool_val(b_info->u.hvm.vnc.enable)) {
             libxl_defbool_setdefault(&b_info->u.hvm.vnc.findunused, true);

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2012-06-28  8:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-26  6:02 [PATCH 1/2] libxl: set stdvga=1 by default when creating a hvm guest Ren, Yongjie
2012-06-26 13:32 ` Ian Campbell
2012-06-26 16:59   ` Stefano Stabellini
2012-06-27  1:45     ` Ren, Yongjie
2012-06-27  7:29       ` Ian Campbell
2012-06-28  8:09         ` Ren, Yongjie
2012-06-27 10:45       ` Pasi Kärkkäinen
2012-06-27 10:51         ` Stefano Stabellini
2012-06-27 10:53           ` Pasi Kärkkäinen
2012-06-27 10:59             ` Stefano Stabellini
2012-06-27 11:12         ` Ian Campbell
2012-06-27 11:20           ` Pasi Kärkkäinen

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