mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +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:
@@ -73,6 +73,12 @@ struct pci_msix {
|
||||
struct pci_cap_sriov {
|
||||
uint32_t capoff;
|
||||
uint32_t caplen;
|
||||
|
||||
/*
|
||||
* If the vdev is a SRIOV PF vdev, the vbars is used to store
|
||||
* the bar information that is using to initialize SRIOV VF vdev bar.
|
||||
*/
|
||||
struct pci_vbar vbars[PCI_BAR_COUNT];
|
||||
};
|
||||
|
||||
union pci_cfgdata {
|
||||
|
Reference in New Issue
Block a user