diff options
| author | Michael S. Tsirkin <mst@redhat.com> | 2024-08-01 03:44:42 -0400 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2024-08-01 04:32:00 -0400 |
| commit | b1282f1e352db9947267a6524c6ded9678e82629 (patch) | |
| tree | 402144b2fca75e3a8da095e09858bff9c7388ebd /hw/pci/pci.c | |
| parent | 9bab08da4e932e9c95919951792ae09d0a59f726 (diff) | |
| download | focaccia-qemu-b1282f1e352db9947267a6524c6ded9678e82629.tar.gz focaccia-qemu-b1282f1e352db9947267a6524c6ded9678e82629.zip | |
Revert "pcie_sriov: Reuse SR-IOV VF device instances"
This reverts commit 139610ae67f6ecf92127bb7bf53ac6265b459ec8. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci/pci.c')
| -rw-r--r-- | hw/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 5c0050e178..b532888e8f 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -2895,7 +2895,7 @@ void pci_set_enabled(PCIDevice *d, bool state) memory_region_set_enabled(&d->bus_master_enable_region, (pci_get_word(d->config + PCI_COMMAND) & PCI_COMMAND_MASTER) && d->enabled); - if (d->qdev.realized) { + if (!d->enabled) { pci_device_reset(d); } } |