mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
hv: add SRIOV capability read/write entries
Introduce SRIOV capability field for pci_vdev and add SRIOV capability interception entries. Tracked-On: #4433 Signed-off-by: Yuan Liu <yuan1.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -69,6 +69,12 @@ struct pci_msix {
|
||||
uint32_t table_count;
|
||||
};
|
||||
|
||||
/* SRIOV capability structure */
|
||||
struct pci_cap_sriov {
|
||||
uint32_t capoff;
|
||||
uint32_t caplen;
|
||||
};
|
||||
|
||||
union pci_cfgdata {
|
||||
uint8_t data_8[PCIE_CONFIG_SPACE_SIZE];
|
||||
uint16_t data_16[PCIE_CONFIG_SPACE_SIZE >> 1U];
|
||||
@@ -98,6 +104,7 @@ struct pci_vdev {
|
||||
|
||||
struct pci_msi msi;
|
||||
struct pci_msix msix;
|
||||
struct pci_cap_sriov sriov;
|
||||
|
||||
/* Pointer to corresponding PCI device's vm_config */
|
||||
struct acrn_vm_pci_dev_config *pci_dev_config;
|
||||
|
Reference in New Issue
Block a user