diff options
author | Peter Xu | 2021-10-28 06:31:26 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2021-11-02 00:36:11 +0100 |
commit | 2914fc61d5d72c6010d2b1fe8b4048b561e44ef3 (patch) | |
tree | fc91cbc8e40ee5b24b726e01c5a02f5bb910e916 /hw/xen | |
parent | pci: Define pci_bus_dev_fn/pci_bus_fn/pci_bus_ret_fn (diff) | |
download | qemu-2914fc61d5d72c6010d2b1fe8b4048b561e44ef3.tar.gz qemu-2914fc61d5d72c6010d2b1fe8b4048b561e44ef3.tar.xz qemu-2914fc61d5d72c6010d2b1fe8b4048b561e44ef3.zip |
pci: Export pci_for_each_device_under_bus*()
They're actually more commonly used than the helper without _under_bus, because
most callers do have the pci bus on hand. After exporting we can switch a lot
of the call sites to use these two helpers.
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20211028043129.38871-3-peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/xen')
-rw-r--r-- | hw/xen/xen_pt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c index ca0a98187e..027190fa44 100644 --- a/hw/xen/xen_pt.c +++ b/hw/xen/xen_pt.c @@ -615,8 +615,8 @@ static void xen_pt_region_update(XenPCIPassthroughState *s, } args.type = d->io_regions[bar].type; - pci_for_each_device(pci_get_bus(d), pci_dev_bus_num(d), - xen_pt_check_bar_overlap, &args); + pci_for_each_device_under_bus(pci_get_bus(d), + xen_pt_check_bar_overlap, &args); if (args.rc) { XEN_PT_WARN(d, "Region: %d (addr: 0x%"FMT_PCIBUS ", len: 0x%"FMT_PCIBUS") is overlapped.\n", |