mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
pcie: Add support for Single Root I/O Virtualization (SR/IOV)
This patch provides the building blocks for creating an SR/IOV PCIe Extended Capability header and register/unregister SR/IOV Virtual Functions. Signed-off-by: Knut Omang <knuto@ifi.uio.no> Message-Id: <20220217174504.1051716-2-lukasz.maniak@linux.intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
0ea5778f06
commit
7c0fa8dff8
9 changed files with 470 additions and 26 deletions
|
@ -24,6 +24,7 @@
|
|||
#include "hw/pci/pci_regs.h"
|
||||
#include "hw/pci/pcie_regs.h"
|
||||
#include "hw/pci/pcie_aer.h"
|
||||
#include "hw/pci/pcie_sriov.h"
|
||||
#include "hw/hotplug.h"
|
||||
|
||||
typedef enum {
|
||||
|
@ -81,6 +82,11 @@ struct PCIExpressDevice {
|
|||
|
||||
/* ACS */
|
||||
uint16_t acs_cap;
|
||||
|
||||
/* SR/IOV */
|
||||
uint16_t sriov_cap;
|
||||
PCIESriovPF sriov_pf;
|
||||
PCIESriovVF sriov_vf;
|
||||
};
|
||||
|
||||
#define COMPAT_PROP_PCP "power_controller_present"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue