[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/5] xen, gfx passthrough: reserve 00:02.0 for INTEL
From: |
Yang Zhang |
Subject: |
[Qemu-devel] [PATCH 2/5] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD |
Date: |
Fri, 21 Feb 2014 14:44:10 +0800 |
From: Yang Zhang <address@hidden>
Some VBIOSs and drivers assume the IGD BDF (bus:device:function) is
always 00:02.0, so this patch reserves 00:02.0 for assigned IGD in
guest.
The original patch is from Weidong Han <address@hidden>
Signed-off-by: Yang Zhang <address@hidden>
Cc: Weidong Han <address@hidden>
---
hw/pci/pci.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index 4e0701d..e81816e 100644
--- a/hw/pci/pci.c
+++ b/hw/pci/pci.c
@@ -808,6 +808,12 @@ static PCIDevice *do_pci_register_device(PCIDevice
*pci_dev, PCIBus *bus,
if (devfn < 0) {
for(devfn = bus->devfn_min ; devfn < ARRAY_SIZE(bus->devices);
devfn += PCI_FUNC_MAX) {
+#if defined(CONFIG_XEN_PCI_PASSTHROUGH)
+ /* If gfx_passthru is in use, reserve 00:02.* for the IGD */
+ if (gfx_passthru && devfn == 0x10) {
+ continue;
+ }
+#endif
if (!bus->devices[devfn])
goto found;
}
--
1.7.1
- [Qemu-devel] [PATCH 0/5] xen: add Intel IGD passthrough support, Yang Zhang, 2014/02/21
- [Qemu-devel] [PATCH 1/5] xen, gfx passthrough: basic graphics passthrough support, Yang Zhang, 2014/02/21
- [Qemu-devel] [PATCH 2/5] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD,
Yang Zhang <=
- [Qemu-devel] [PATCH 5/5] xen, gfx passthrough: add opregion mapping, Yang Zhang, 2014/02/21
- [Qemu-devel] [PATCH 3/5] xen, gfx passthrough: create intel isa bridge, Yang Zhang, 2014/02/21
- [Qemu-devel] [PATCH 4/5] xen, gfx passthrough: support Intel IGD passthrough with VT-D, Yang Zhang, 2014/02/21
- Re: [Qemu-devel] [PATCH 0/5] xen: add Intel IGD passthrough support, Zhang, Yang Z, 2014/02/27