From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGjv9-0000vE-Ly for qemu-devel@nongnu.org; Fri, 21 Feb 2014 01:49:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGjv4-0007bw-GS for qemu-devel@nongnu.org; Fri, 21 Feb 2014 01:49:15 -0500 Received: from mga02.intel.com ([134.134.136.20]:57855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGjv4-0007Y0-A3 for qemu-devel@nongnu.org; Fri, 21 Feb 2014 01:49:10 -0500 From: Yang Zhang Date: Fri, 21 Feb 2014 14:44:08 +0800 Message-Id: <1392965053-1069-1-git-send-email-yang.z.zhang@intel.com> Subject: [Qemu-devel] [PATCH 0/5] xen: add Intel IGD passthrough support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, xen-devel@lists.xensource.com, stefano.stabellini@eu.citrix.com, allen.m.kay@intel.com, weidong.han@intel.com, jean.guyader@eu.citrix.com, Yang Zhang , anthony@codemonkey.ws, anthony.perard@citrix.com From: Yang Zhang The following patches are ported from Xen Qemu-traditional branch which are adding Intel IGD passthrough supporting to Qemu upstream. To pass through IGD to guest, user need to add following lines in Xen config file: gfx_passthru=1 pci=['00:02.0@2'] Besides, since Xen + Qemu upstream is requiring seabios, user also need to recompile seabios with CONFIG_OPTIONROMS_DEPLOYED=y to allow IGD pass through successfully: 1. change CONFIG_OPTIONROMS_DEPLOYED=y in file: xen/tools/firmware/seabios-config 2. recompile the tools I have successfully boot Win 7 and RHEL6u4 guests with IGD assigned in Haswell desktop with Latest Xen + Qemu upstream. Yang Zhang (5): xen, gfx passthrough: basic graphics passthrough support xen, gfx passthrough: reserve 00:02.0 for INTEL IGD xen, gfx passthrough: create intel isa bridge xen, gfx passthrough: support Intel IGD passthrough with VT-D xen, gfx passthrough: add opregion mapping configure | 2 +- hw/pci-host/piix.c | 15 ++ hw/pci/pci.c | 19 ++ hw/xen/Makefile.objs | 2 +- hw/xen/xen-host-pci-device.c | 5 + hw/xen/xen-host-pci-device.h | 1 + hw/xen/xen_pt.c | 10 + hw/xen/xen_pt.h | 13 ++- hw/xen/xen_pt_config_init.c | 45 +++++- hw/xen/xen_pt_graphics.c | 407 ++++++++++++++++++++++++++++++++++++++++++ qemu-options.hx | 9 + vl.c | 8 + 12 files changed, 532 insertions(+), 4 deletions(-) create mode 100644 hw/xen/xen_pt_graphics.c