libxl: Add gfx_passthru parameter
PATCH 1/1 libxl: Add gfx_passthru parameter
Signed-off-by Daniel De Graaf <[email protected]>
---
tools/libxl/libxl.c +3 -0
@@ -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 ;
tools/libxl/libxl.idl +1 -0
@@ -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"),
tools/libxl/xl_cmdimpl.c +3 -0
@@ -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))
Daniel De Graaf writes ("[Xen-devel] [PATCH] libxl: Add gfx_passthru parameter"):
Quoted 1 line
+
printf("\t\t\t(gfx_passthru %d)\n", dm_info->gfx_passthru);
Thanks. Technically we are in feature-freeze, and this is a new feature, but I have spoken to my colleagues and we are happy to make an exception for this small low-risk change.
So I have applied your patch.
Ian.