diff options
author | Allen Kay <allen.m.kay@intel.com> | 2011-02-02 17:06:36 +0000 |
---|---|---|
committer | Allen Kay <allen.m.kay@intel.com> | 2011-02-02 17:06:36 +0000 |
commit | 7990584bb09ca04f5c79fa832d763d35ad0eae59 (patch) | |
tree | 67b12eb4664b3012fb68848efce20a466c6c4d62 | |
parent | daf42cb9952af85597650d32b0c70f9b285c199b (diff) | |
download | xen-7990584bb09ca04f5c79fa832d763d35ad0eae59.tar.gz xen-7990584bb09ca04f5c79fa832d763d35ad0eae59.tar.bz2 xen-7990584bb09ca04f5c79fa832d763d35ad0eae59.zip |
libxl: pass gfx_passthru parameter to QEMU
Pass gfx_passthru parameter to QEMU. Keep it boolean for now as QEMU
does not expect any other integer value.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r-- | tools/libxl/libxl_dm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index 3bef49aedc..8d5dc423c9 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -148,6 +148,9 @@ static char ** libxl_build_device_model_args_old(libxl__gc *gc, if ( ioemu_vifs == 0 ) { flexarray_vappend(dm_args, "-net", "none", NULL); } + if (info->gfx_passthru) { + flexarray_append(dm_args, "-gfx_passthru"); + } } if (info->saved_state) { flexarray_vappend(dm_args, "-loadvm", info->saved_state, NULL); @@ -281,6 +284,9 @@ static char ** libxl_build_device_model_args_new(libxl__gc *gc, flexarray_append(dm_args, "-net"); flexarray_append(dm_args, "none"); } + if (info->gfx_passthru) { + flexarray_append(dm_args, "-gfx_passthru"); + } } if (info->saved_state) { flexarray_append(dm_args, "-loadvm"); |