Skip to content

xen: add Intel IGD passthrough support

Yang Zhang qemu-devel xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xen, gfx passthrough: basic graphics passthrough supportconfigure hw/xen/Makefile.objs hw/xen/xen-host-pci-device.c +6 more+203 -23 replies
2/5xen, gfx passthrough: reserve 00:02.0 for INTEL IGDhw/pci/pci.c+6 -01 reply
3/5xen, gfx passthrough: create intel isa bridgehw/xen/xen_pt_graphics.c+71 -00 replies
4/5xen, gfx passthrough: support Intel IGD passthrough with VT-Dhw/pci-host/piix.c hw/pci/pci.c hw/xen/xen_pt.h +1 more+160 -02 replies
5/5xen, gfx passthrough: add opregion mappinghw/xen/xen_pt.h hw/xen/xen_pt_config_init.c hw/xen/xen_pt_graphics.c+92 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/5] xen: add Intel IGD passthrough support

From: Yang Zhang <[email protected]>

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