[libvirt] [PATCH 1/4] pci: Add two new pci utils pciDeviceGetVirtualFunctionInfo and pciConfigAddressToSysfsFile

Laine Stump laine at laine.org
Mon Mar 5 17:15:32 UTC 2012


On 03/04/2012 10:15 PM, Roopa Prabhu wrote:
> From: Roopa Prabhu <roprabhu at cisco.com>
>
> pciDeviceGetVirtualFunctionInfo returns pf netdevice name and virtual
> function index for a given vf. This is just a wrapper around existing functions
> to return vf's pf and vf_index with one api call
>
> pciConfigAddressToSysfsfile returns the sysfile pci device link
> from a 'struct pci_config_address'
>
> Signed-off-by: Roopa Prabhu <roprabhu at cisco.com>
> ---
>  src/util/pci.c |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  src/util/pci.h |    7 +++++++
>  2 files changed, 62 insertions(+), 0 deletions(-)

ACK.




More information about the libvir-list mailing list