Skip to content

Commit

Permalink
hw/i386/pc_piix: Allow for setting properties before realizing PIIX3 …
Browse files Browse the repository at this point in the history
…south bridge

The next patches will need to take advantage of it.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20231007123843.127151-3-shentey@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
shentok authored and mstsirkin committed Oct 19, 2023
1 parent 068f463 commit 07779d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hw/i386/pc_piix.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ static void pc_init1(MachineState *machine,
PIIX3State *piix3;
PCIDevice *pci_dev;

pci_dev = pci_create_simple_multifunction(pci_bus, -1, TYPE_PIIX3_DEVICE);
pci_dev = pci_new_multifunction(-1, TYPE_PIIX3_DEVICE);
pci_realize_and_unref(pci_dev, pci_bus, &error_fatal);

if (xen_enabled()) {
pci_device_set_intx_routing_notifier(
Expand Down

0 comments on commit 07779d2

Please sign in to comment.