[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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 
port"),
+    ("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 
dca"),
     ("usb",              bool,              False, "usb support enabled or 
disabled"),
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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.