]> xenbits.xensource.com Git - people/vhanquez/xen-unstable.git/commitdiff
libxl: Add gfx_passthru parameter
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 11 Jan 2011 16:13:07 +0000 (16:13 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 11 Jan 2011 16:13:07 +0000 (16:13 +0000)
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.idl
tools/libxl/xl_cmdimpl.c

index e6a8805584b93511ab2d8906b72bf4d2d6e9c609..98f1df4414a61ac1891461851bb9ba87b2bbc07d 100644 (file)
@@ -152,6 +152,7 @@ libxl_device_model_info = Struct("device_model_info",[
     ("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"),
index b7d30507388a2d812e050fc1d35955320f0ff95a..446078d5ba78d0d9ebbe980d2fb22dfbe219a9dd 100644 (file)
@@ -543,6 +543,7 @@ static void printf_info(int domid,
         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);
@@ -1281,6 +1282,8 @@ skip_vfb:
             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))