summary refs log tree commit diff stats
path: root/hw/xen/xen_pt_graphics.c
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2022-03-26 17:58:24 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2022-05-12 12:07:06 +0200
commit76acef2b735729c642c54385b7566de509506d9a (patch)
treef7009111f0dd5876802fd5694c0f6b733e43248b /hw/xen/xen_pt_graphics.c
parent4a8027363e9680d00786622ee786fc3ccd6b970b (diff)
downloadfocaccia-qemu-76acef2b735729c642c54385b7566de509506d9a.tar.gz
focaccia-qemu-76acef2b735729c642c54385b7566de509506d9a.zip
hw/xen/xen_pt: Resolve igd_passthrough_isa_bridge_create() indirection
Now that igd_passthrough_isa_bridge_create() is implemented within the
xen context it may use Xen* data types directly and become
xen_igd_passthrough_isa_bridge_create(). This resolves an indirection.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Message-Id: <20220326165825.30794-3-shentey@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/xen/xen_pt_graphics.c')
-rw-r--r--hw/xen/xen_pt_graphics.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/xen/xen_pt_graphics.c b/hw/xen/xen_pt_graphics.c
index f1fbb98912..f303f67c9c 100644
--- a/hw/xen/xen_pt_graphics.c
+++ b/hw/xen/xen_pt_graphics.c
@@ -375,10 +375,13 @@ static void pt_graphics_register_types(void)
 }
 type_init(pt_graphics_register_types)
 
-void igd_passthrough_isa_bridge_create(PCIBus *bus, uint16_t gpu_dev_id)
+void xen_igd_passthrough_isa_bridge_create(XenPCIPassthroughState *s,
+                                           XenHostPCIDevice *dev)
 {
+    PCIBus *bus = pci_get_bus(&s->dev);
     struct PCIDevice *bridge_dev;
     int i, num;
+    const uint16_t gpu_dev_id = dev->device_id;
     uint16_t pch_dev_id = 0xffff;
     uint8_t pch_rev_id = 0;