diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2024-06-27 15:07:53 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2024-07-03 18:14:07 -0400 |
commit | c613ad25125bf3016aa8f81ce170f5ac91d2379f (patch) | |
tree | 8862fe1d808c1f3b8ca23f9f545b55a659bf72f0 /hw/pci | |
parent | 26f86093ec989cb73ad03e8a234f5dc321e1e267 (diff) | |
download | qemu-c613ad25125bf3016aa8f81ce170f5ac91d2379f.zip qemu-c613ad25125bf3016aa8f81ce170f5ac91d2379f.tar.gz qemu-c613ad25125bf3016aa8f81ce170f5ac91d2379f.tar.bz2 |
pcie_sriov: Do not manually unrealize
A device gets automatically unrealized when being unparented.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20240627-reuse-v10-4-7ca0b8ed3d9f@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci')
-rw-r--r-- | hw/pci/pcie_sriov.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/pci/pcie_sriov.c b/hw/pci/pcie_sriov.c index e9b2322..499becd 100644 --- a/hw/pci/pcie_sriov.c +++ b/hw/pci/pcie_sriov.c @@ -204,11 +204,7 @@ static void unregister_vfs(PCIDevice *dev) trace_sriov_unregister_vfs(dev->name, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn), num_vfs); for (i = 0; i < num_vfs; i++) { - Error *err = NULL; PCIDevice *vf = dev->exp.sriov_pf.vf[i]; - if (!object_property_set_bool(OBJECT(vf), "realized", false, &err)) { - error_reportf_err(err, "Failed to unplug: "); - } object_unparent(OBJECT(vf)); object_unref(OBJECT(vf)); } |