[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 83/91] hw/ppc/spapr_pci: Do not create DT for disabled PCI device
From: |
Michael S. Tsirkin |
Subject: |
[PULL 83/91] hw/ppc/spapr_pci: Do not create DT for disabled PCI device |
Date: |
Tue, 2 Jul 2024 10:11:15 -0400 |
From: Akihiko Odaki <akihiko.odaki@daynix.com>
Disabled means it is a disabled SR-IOV VF or it is powered off, and
hidden from the guest.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20240627-reuse-v10-2-7ca0b8ed3d9f@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/ppc/spapr_pci.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c
index 7cf9904c35..f63182a03c 100644
--- a/hw/ppc/spapr_pci.c
+++ b/hw/ppc/spapr_pci.c
@@ -1296,6 +1296,10 @@ static void spapr_dt_pci_device_cb(PCIBus *bus,
PCIDevice *pdev,
return;
}
+ if (!pdev->enabled) {
+ return;
+ }
+
err = spapr_dt_pci_device(p->sphb, pdev, p->fdt, p->offset);
if (err < 0) {
p->err = err;
--
MST
- [PULL 69/91] tests/qtest/bios-tables-test.c: Set "arch" for x86 tests, (continued)
- [PULL 69/91] tests/qtest/bios-tables-test.c: Set "arch" for x86 tests, Michael S. Tsirkin, 2024/07/02
- [PULL 68/91] tests/qtest/bios-tables-test.c: Set "arch" for aarch64 tests, Michael S. Tsirkin, 2024/07/02
- [PULL 76/91] tests/qtest/bios-tables-test.c: Enable basic testing for RISC-V, Michael S. Tsirkin, 2024/07/02
- [PULL 75/91] tests/qtest/bios-tables-test: Add empty ACPI data files for RISC-V, Michael S. Tsirkin, 2024/07/02
- [PULL 79/91] hw/cxl/events: Mark cxl-add-dynamic-capacity and cxl-release-dynamic-capcity unstable, Michael S. Tsirkin, 2024/07/02
- [PULL 78/91] hw/cxl/events: Improve QMP interfaces and documentation for add/release dynamic capacity., Michael S. Tsirkin, 2024/07/02
- [PULL 88/91] pcie_sriov: Release VFs failed to realize, Michael S. Tsirkin, 2024/07/02
- [PULL 77/91] tests/qtest/bios-tables-test: Add expected ACPI data files for RISC-V, Michael S. Tsirkin, 2024/07/02
- [PULL 81/91] virtio-iommu: Clear IOMMUDevice when VFIO device is unplugged, Michael S. Tsirkin, 2024/07/02
- [PULL 82/91] hw/pci: Rename has_power to enabled, Michael S. Tsirkin, 2024/07/02
- [PULL 83/91] hw/ppc/spapr_pci: Do not create DT for disabled PCI device,
Michael S. Tsirkin <=
- [PULL 87/91] pcie_sriov: Reuse SR-IOV VF device instances, Michael S. Tsirkin, 2024/07/02
- [PULL 86/91] pcie_sriov: Ensure VF function number does not overflow, Michael S. Tsirkin, 2024/07/02
- [PULL 84/91] hw/ppc/spapr_pci: Do not reject VFs created after a PF, Michael S. Tsirkin, 2024/07/02
- [PULL 90/91] pcie_sriov: Register VFs after migration, Michael S. Tsirkin, 2024/07/02
- [PULL 91/91] hw/pci: Replace -1 with UINT32_MAX for romsize, Michael S. Tsirkin, 2024/07/02
- [PULL 89/91] pcie_sriov: Remove num_vfs from PCIESriovPF, Michael S. Tsirkin, 2024/07/02
- Re: [PULL 00/91] virtio: features,fixes, Michael S. Tsirkin, 2024/07/02
- Re: [PULL 00/91] virtio: features,fixes, Michael S. Tsirkin, 2024/07/02