[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/14] pcie_sriov: Release VFs failed to realize
From: |
Akihiko Odaki |
Subject: |
[PATCH 11/14] pcie_sriov: Release VFs failed to realize |
Date: |
Sat, 02 Dec 2023 17:00:34 +0900 |
Release VFs failed to realize just as we do in unregister_vfs().
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
hw/pci/pcie_sriov.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/pci/pcie_sriov.c b/hw/pci/pcie_sriov.c
index 5ef8950940..3ec786d341 100644
--- a/hw/pci/pcie_sriov.c
+++ b/hw/pci/pcie_sriov.c
@@ -153,6 +153,8 @@ static PCIDevice *register_vf(PCIDevice *pf, int devfn,
const char *name,
qdev_realize(&dev->qdev, &bus->qbus, &local_err);
if (local_err) {
error_report_err(local_err);
+ object_unparent(OBJECT(dev));
+ object_unref(dev);
return NULL;
}
--
2.43.0
- [PATCH 01/14] vfio: Avoid inspecting option QDict for rombar, (continued)
- [PATCH 01/14] vfio: Avoid inspecting option QDict for rombar, Akihiko Odaki, 2023/12/02
- [PATCH 02/14] hw/qdev: Remove opts member, Akihiko Odaki, 2023/12/02
- [PATCH 03/14] qdev: Add DeviceClass::hide(), Akihiko Odaki, 2023/12/02
- [PATCH 04/14] hw/pci: Add pci-failover, Akihiko Odaki, 2023/12/02
- [PATCH 05/14] virtio-net: Implement pci-failover, Akihiko Odaki, 2023/12/02
- [PATCH 06/14] qdev: Remove DeviceListener::hide_device(), Akihiko Odaki, 2023/12/02
- [PATCH 08/14] qdev: Add qdev_device_new_from_qdict(), Akihiko Odaki, 2023/12/02
- [PATCH 07/14] hw/pci: Add hide(), Akihiko Odaki, 2023/12/02
- [PATCH 09/14] hw/pci: Do not add ROM BAR for SR-IOV VF, Akihiko Odaki, 2023/12/02
- [PATCH 10/14] msix: Call pcie_sriov_vf_register_bar() for SR-IOV VF, Akihiko Odaki, 2023/12/02
- [PATCH 11/14] pcie_sriov: Release VFs failed to realize,
Akihiko Odaki <=
- [PATCH 12/14] pcie_sriov: Allow to specify VF device options, Akihiko Odaki, 2023/12/02
- [PATCH 13/14] virtio-pci: add SR-IOV capability, Akihiko Odaki, 2023/12/02
- [PATCH 14/14] virtio-net: Add SR-IOV capability, Akihiko Odaki, 2023/12/02
- Re: [PATCH 00/14] virtio-net: add support for SR-IOV emulation, Akihiko Odaki, 2023/12/02