xen: add Intel IGD passthrough support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest5 patches 163 repliesIn review
- v45 patches 24 repliesSuperseded
- v3 posting 2/25 patches 21 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 posting 1/2 | 0 of 8 patches | 1 reply | Superseded | |
| v2 | 8 patches | 66 replies | Superseded |
Changes in v5 from the cover letter
* Don't set that ISA class property, instead, just fake this ISA bridge with 00:1f.0.
* Don't pass vendor/device ids in igd_pci_read().
* Add to support offset 0x44/0x48.
* Just rebase.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | xen, gfx passthrough: basic graphics passthrough supporthw/ hw/ hw/ +5 more | +272 | 5 replies | |
| 2/5 | xen, gfx passthrough: create pseudo intel isa bridgehw/ | +61 | 21 replies | |
| 3/5 | xen, gfx passthrough: support Intel IGD passthrough with VT-Dhw/ hw/ | +160 | 8 replies | |
| 4/5 | xen, gfx passthrough: create host bridge to passthroughhw/ | +54 | 11 replies | |
| 5/5 | xen, gfx passthrough: add opregion mappinghw/ hw/ hw/ | +116 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [Qemu-devel] [v5][PATCH 0/5] xen: add Intel IGD passthrough support
V5 is generated just based on Paolo's some comments.
v5:
* Don't set that ISA class property, instead, just fake this ISA bridge with 00:1f.0.
* Don't pass vendor/device ids in igd_pci_read().
* Add to support offset 0x44/0x48.
* Just rebase.
v4:
* Fix some typos in the patch head description.
* Improve some comments.
* Given that xen_pt_register_vga_regions()/xen_pt_unregister_vga_regions() are called unconditionally, so we just return 0 there.
* Remove one spurious change.
* Remove some unnecessary "return" in void foo().
* Given that pci_create_pch() is called unconditionally, so we just return 0 even if its failed to check xen_has_gfx_passthru.
* Use (xen_enabled() && xen_has_gfx_passthru) to make sure we only work in this scenario.
v3:
* In this case, as we discussed we will give priority to devices to reserve a specific devfn by passing "device_model_args_hvm = ['-device', 'xen-platform,addr=0x3']" and "vga=none", so withdraw patch #1, #2 and #4.
* Fix some typos.
* Add more comments to make that readable.
* To unmap igd_opregion when call xen_pt_unregister_vga_regions().
* Improve some return paths.
* Force to convert igd_guest/host_opoegion as an unsigned long type while calling xc_domain_memory_mapping().
* We need to map 3 pages for opregion as hvmloader set.
v2:
* rebase on current qemu tree.
* retrieve VGA bios from sysfs properly.
* redefine some function name.
* introduce bitmap to manage registe/runregister pci dev, and provide a common way to reserve some specific devfn.
* introduce is_igd_passthrough() to make sure we touch physical host bridge only in IGD case.
* We should return zero as an invalid address value while calling igd_read_opregion().
Additionally, now its also not necessary to recompile seabios with some extra steps like v1.
The following patches are ported partially 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']
Now successfully boot Ubuntu 14.04/Windows 7 guests with IGD assigned in Haswell desktop with Latest Xen + Qemu upstream.
----------------------------------------------------------------
Tiejun Chen (5):
xen, gfx passthrough: basic graphics passthrough support xen, gfx passthrough: create pseudo intel isa bridge xen, gfx passthrough: support Intel IGD passthrough with VT-D xen, gfx passthrough: create host bridge to passthrough xen, gfx passthrough: add opregion mapping
hw/pci-host/piix.c | 56 +++++++++++++++- 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 | 12 +++- hw/xen/xen_pt_config_init.c | 50 +++++++++++++- hw/xen/xen_pt_graphics.c | 513 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ qemu-options.hx | 9 +++ vl.c | 10 +++ 10 files changed, 663 insertions(+), 5 deletion
Thanks
Tiejun