[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v3 79/85] pcie_sriov: Do not manually unrealize
From: |
Michael S. Tsirkin |
Subject: |
[PULL v3 79/85] pcie_sriov: Do not manually unrealize |
Date: |
Wed, 3 Jul 2024 18:50:18 -0400 |
From: Akihiko Odaki <akihiko.odaki@daynix.com>
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>
---
hw/pci/pcie_sriov.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/hw/pci/pcie_sriov.c b/hw/pci/pcie_sriov.c
index e9b23221d7..499becd527 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));
}
--
MST
- [PULL v3 68/85] tests/data/acpi/virt: Move ARM64 ACPI tables under aarch64/${machine} path, (continued)
- [PULL v3 68/85] tests/data/acpi/virt: Move ARM64 ACPI tables under aarch64/${machine} path, Michael S. Tsirkin, 2024/07/03
- [PULL v3 70/85] pc-bios/meson.build: Add support for RISC-V in unpack_edk2_blobs, Michael S. Tsirkin, 2024/07/03
- [PULL v3 71/85] tests/data/acpi/rebuild-expected-aml.sh: Add RISC-V, Michael S. Tsirkin, 2024/07/03
- [PULL v3 72/85] hw/cxl/events: Improve QMP interfaces and documentation for add/release dynamic capacity., Michael S. Tsirkin, 2024/07/03
- [PULL v3 73/85] hw/cxl/events: Mark cxl-add-dynamic-capacity and cxl-release-dynamic-capcity unstable, Michael S. Tsirkin, 2024/07/03
- [PULL v3 74/85] virtio: remove virtio_tswap16s() call in vring_packed_event_read(), Michael S. Tsirkin, 2024/07/03
- [PULL v3 75/85] virtio-iommu: Clear IOMMUDevice when VFIO device is unplugged, Michael S. Tsirkin, 2024/07/03
- [PULL v3 76/85] hw/pci: Rename has_power to enabled, Michael S. Tsirkin, 2024/07/03
- [PULL v3 77/85] hw/ppc/spapr_pci: Do not create DT for disabled PCI device, Michael S. Tsirkin, 2024/07/03
- [PULL v3 78/85] hw/ppc/spapr_pci: Do not reject VFs created after a PF, Michael S. Tsirkin, 2024/07/03
- [PULL v3 79/85] pcie_sriov: Do not manually unrealize,
Michael S. Tsirkin <=
- [PULL v3 80/85] pcie_sriov: Ensure VF function number does not overflow, Michael S. Tsirkin, 2024/07/03
- [PULL v3 81/85] pcie_sriov: Reuse SR-IOV VF device instances, Michael S. Tsirkin, 2024/07/03
- [PULL v3 82/85] pcie_sriov: Release VFs failed to realize, Michael S. Tsirkin, 2024/07/03
- [PULL v3 83/85] pcie_sriov: Remove num_vfs from PCIESriovPF, Michael S. Tsirkin, 2024/07/03
- [PULL v3 84/85] pcie_sriov: Register VFs after migration, Michael S. Tsirkin, 2024/07/03
- [PULL v3 85/85] hw/pci: Replace -1 with UINT32_MAX for romsize, Michael S. Tsirkin, 2024/07/03
- [PULL v3 69/85] meson.build: Add RISC-V to the edk2-target list, Michael S. Tsirkin, 2024/07/03
- Re: [PULL v3 00/85] virtio: features,fixes, Richard Henderson, 2024/07/04