aboutsummaryrefslogtreecommitdiff
path: root/hw/isa
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2023-04-03 09:41:20 +0200
committerAnthony PERARD <anthony.perard@citrix.com>2023-06-07 15:07:10 +0100
commita58a31a6a18ab650c6b676eccf98b6f68ac672d0 (patch)
tree76e6fecf6f88a18dc372f14c57222866da155a86 /hw/isa
parentc0b59416c05fbf7a5fefee4b4757f7281e34ed02 (diff)
downloadqemu-a58a31a6a18ab650c6b676eccf98b6f68ac672d0.zip
qemu-a58a31a6a18ab650c6b676eccf98b6f68ac672d0.tar.gz
qemu-a58a31a6a18ab650c6b676eccf98b6f68ac672d0.tar.bz2
hw/isa/piix3: Reuse piix3_realize() in piix3_xen_realize()
This is a preparational patch for the next one to make the following more obvious: First, pci_bus_irqs() is now called twice in case of Xen where the second call overrides the pci_set_irq_fn with the Xen variant. Second, pci_bus_set_route_irq_fn() is now also called in Xen mode. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Anthony PERARD <anthony.perard@citrix.com> Tested-by: Chuck Zmudzinski <brchuckz@aol.com> Message-Id: <20230312120221.99183-3-shentey@gmail.com> Message-Id: <20230403074124.3925-4-shentey@gmail.com> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Diffstat (limited to 'hw/isa')
-rw-r--r--hw/isa/piix3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/isa/piix3.c b/hw/isa/piix3.c
index 6651521..800b80f 100644
--- a/hw/isa/piix3.c
+++ b/hw/isa/piix3.c
@@ -409,7 +409,7 @@ static void piix3_xen_realize(PCIDevice *dev, Error **errp)
PIIX3State *piix3 = PIIX3_PCI_DEVICE(dev);
PCIBus *pci_bus = pci_get_bus(dev);
- pci_piix3_realize(dev, errp);
+ piix3_realize(dev, errp);
if (*errp) {
return;
}