OSDN Git Service

pcie: Add a helper to the SR/IOV API
authorŁukasz Gieryk <lukasz.gieryk@linux.intel.com>
Thu, 17 Feb 2022 17:44:52 +0000 (18:44 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 6 Mar 2022 10:08:23 +0000 (05:08 -0500)
commit69387f4915afe4abe61c028cef30f56562d802a4
treeeb62f290d592645f193d3524535bafbb5f8ac3d1
parent2503461691d3a781d3b9b54697955c3c1873af47
pcie: Add a helper to the SR/IOV API

Convenience function for retrieving the PCIDevice object of the N-th VF.

Signed-off-by: Łukasz Gieryk <lukasz.gieryk@linux.intel.com>
Reviewed-by: Knut Omang <knuto@ifi.uio.no>
Message-Id: <20220217174504.1051716-4-lukasz.maniak@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pcie_sriov.c
include/hw/pci/pcie_sriov.h