Re: [Qemu-devel] [for-2.12 5/7] pci: Add pci_dev_bus_num() helper

2017-11-29 Thread Peter Xu
On Wed, Nov 29, 2017 at 07:46:26PM +1100, David Gibson wrote: > A fair proportion of the users of pci_bus_num() want to get the bus > number on a specific device, so first have to look up the bus from the > device then call it. This adds a helper to do that (since we're going > to make looking up

Re: [Qemu-devel] [for-2.12 5/7] pci: Add pci_dev_bus_num() helper

2017-11-29 Thread Marcel Apfelbaum
On 29/11/2017 10:46, David Gibson wrote: A fair proportion of the users of pci_bus_num() want to get the bus number on a specific device, so first have to look up the bus from the device then call it. This adds a helper to do that (since we're going to make looking up the bus slightly more verbo