diff options
author | Bernhard Beschow <shentey@gmail.com> | 2023-10-07 14:38:10 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-10-22 05:18:16 -0400 |
commit | fe9a7350c2900c9609e7a8ce1e042e3458a245e2 (patch) | |
tree | 89ffba18c90e87d19801960b5ad66f3cd1e528d7 | |
parent | 9c91051119f8c493a5802c4f5347516679e55552 (diff) | |
download | qemu-fe9a7350c2900c9609e7a8ce1e042e3458a245e2.zip qemu-fe9a7350c2900c9609e7a8ce1e042e3458a245e2.tar.gz qemu-fe9a7350c2900c9609e7a8ce1e042e3458a245e2.tar.bz2 |
hw/i386/pc_piix: Allow for setting properties before realizing PIIX3 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>
-rw-r--r-- | hw/i386/pc_piix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index e36a326..6d2f550 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -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( |