]> git.ipfire.org Git - thirdparty/qemu.git/commit
pci: Fix wrong parameter passing to pci_device_get_iommu_bus_devfn()
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Mon, 29 Sep 2025 03:42:06 +0000 (23:42 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 5 Oct 2025 20:13:02 +0000 (16:13 -0400)
commit5c1ded52ac04ee818f642766e3f3b69c78fa160f
treec1bd504046284fff5716803605bbe7d9a99ac75d
parent3cda33e06e72412512c0f376a5261e0ff6ebe73f
pci: Fix wrong parameter passing to pci_device_get_iommu_bus_devfn()

The 2nd parameter of pci_device_get_iommu_bus_devfn() about root PCIBus
backed by an IOMMU for the PCI device, the 3rd is about aliased PCIBus
of the PCI device.

Meanwhile the 3rd and 4th parameters are optional, pass NULL if they
are not needed.

Reviewed-by: Clément Mathieu--Drif <clement.mathieu--drif@eviden.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20250929034206.439266-4-zhenzhong.duan@intel.com>
Fixes: a849ff5d6f ("pci: Add a pci-level initialization function for IOMMU notifiers")
Fixes: f0f37daf8e ("pci: Add a PCI-level API for PRI")
Fixes: e9b457500a ("pci: Add a pci-level API for ATS")
Fixes: 042cbc9aec ("pci: Add an API to get IOMMU's min page size and virtual address width")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c