mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
hv: implement SRIOV VF_BAR initialization
All SRIOV VF physical devices don't have bars in configuration space, they are from the VF associated PF's VF_BAR registers of SRIOV capability. Adding a vbars data structure in pci_cap_sriov data structure to store SRIOV VF_BAR information, so that each VF bars can be initialized directly through the vbars instead multiple accessing of the PF VF_BAR registers. 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:
@@ -120,6 +120,7 @@
|
||||
#define PCIR_SRIOV_NUMVFS 0x10U
|
||||
#define PCIR_SRIOV_FST_VF_OFF 0x14U
|
||||
#define PCIR_SRIOV_VF_STRIDE 0x16U
|
||||
#define PCIR_SRIOV_VF_BAR_OFF 0x24U
|
||||
#define PCIM_SRIOV_VF_ENABLE 0x1U
|
||||
|
||||
/* PCI Message Signalled Interrupts (MSI) */
|
||||
|
Reference in New Issue
Block a user