This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] [PATCH] libxl: Add gfx_passthru parameter

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] libxl: Add gfx_passthru parameter
From: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
Date: Thu, 06 Jan 2011 15:50:50 -0500
Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Delivery-date: Thu, 06 Jan 2011 12:52:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: National Security Agency
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Thunderbird/3.1.7
Signed-off-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>

diff -r b5d5cb0be72c -r 78c5a63997df tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Thu Dec 30 04:32:18 2010 -0500
+++ b/tools/libxl/libxl.c       Tue Jan 04 04:28:25 2011 -0500
@@ -1171,6 +1171,9 @@
         flexarray_set(dm_args, num++, "-serial");
         flexarray_set(dm_args, num++, info->serial);
+    if (info->gfx_passthru) {
+        flexarray_set(dm_args, num++, "-gfx_passthru");
+    }
     if (info->type == XENFV) {
         int ioemu_vifs = 0;
diff -r b5d5cb0be72c -r 78c5a63997df tools/libxl/libxl.idl
--- a/tools/libxl/libxl.idl     Thu Dec 30 04:32:18 2010 -0500
+++ b/tools/libxl/libxl.idl     Tue Jan 04 04:28:25 2011 -0500
@@ -151,6 +151,7 @@
     ("sdl",              bool,              False, "sdl enabled or disabled"),
     ("opengl",           bool,              False, "opengl enabled or disabled 
(if enabled requires sdl enabled)"),
     ("nographic",        bool,              False, "no graphics, use serial 
+    ("gfx_passthru",     bool,              False, "disable qemu graphics for 
PCI passthru of GPU from host"),
     ("serial",           string,            False, "serial port re-direct to 
pty deivce"),
     ("boot",             string,            False, "boot order, for example 
     ("usb",              bool,              False, "usb support enabled or 
diff -r b5d5cb0be72c -r 78c5a63997df tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c  Thu Dec 30 04:32:18 2010 -0500
+++ b/tools/libxl/xl_cmdimpl.c  Tue Jan 04 04:28:25 2011 -0500
@@ -542,6 +542,7 @@
         printf("\t\t\t(vncunused %d)\n", dm_info->vncunused);
         printf("\t\t\t(keymap %s)\n", dm_info->keymap);
         printf("\t\t\t(sdl %d)\n", dm_info->sdl);
+        printf("\t\t\t(gfx_passthru %d)\n", dm_info->gfx_passthru);
         printf("\t\t\t(opengl %d)\n", dm_info->opengl);
         printf("\t\t\t(nographic %d)\n", dm_info->nographic);
         printf("\t\t\t(serial %s)\n", dm_info->serial);
@@ -1198,6 +1199,8 @@
             dm_info->opengl = l;
         if (!xlu_cfg_get_long (config, "nographic", &l))
             dm_info->nographic = l;
+        if (!xlu_cfg_get_long (config, "gfx_passthru", &l))
+            dm_info->gfx_passthru = l;
         xlu_cfg_replace_string (config, "serial", &dm_info->serial);
         xlu_cfg_replace_string (config, "boot", &dm_info->boot);
         if (!xlu_cfg_get_long (config, "usb", &l))

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>