Skip to content

Commit

Permalink
hw/isa/piix: Implement multi-process QEMU support also for PIIX4
Browse files Browse the repository at this point in the history
So far multi-process QEMU was only implemented for PIIX3. Move the support into
the base class to achieve feature parity between both device models.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <20231007123843.127151-29-shentey@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
shentok authored and mstsirkin committed Oct 19, 2023
1 parent 852a296 commit f2bc8eb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions hw/isa/piix.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ static void pci_piix_realize(PCIDevice *dev, const char *uhci_type,
}

pci_bus_irqs(pci_bus, piix_set_pci_irq, d, PIIX_NUM_PIRQS);
pci_bus_set_route_irq_fn(pci_bus, piix_route_intx_pin_to_irq);
}

static void build_pci_isa_aml(AcpiDevAmlIf *adev, Aml *scope)
Expand Down Expand Up @@ -454,15 +455,7 @@ static const TypeInfo piix_pci_type_info = {

static void piix3_realize(PCIDevice *dev, Error **errp)
{
ERRP_GUARD();
PCIBus *pci_bus = pci_get_bus(dev);

pci_piix_realize(dev, TYPE_PIIX3_USB_UHCI, errp);
if (*errp) {
return;
}

pci_bus_set_route_irq_fn(pci_bus, piix_route_intx_pin_to_irq);
}

static void piix3_init(Object *obj)
Expand Down

0 comments on commit f2bc8eb

Please sign in to comment.