mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
hv: passthrough a VF device
Emulate Device ID, Vendor ID and MSE(Memory Space Enable) bit in configuration space for an assigned VF, initialize assgined VF Bars. The Device ID comes from PF's SRIOV capability The Vendor ID comes from PF's Vendor ID The PCI MSE bit always be set when VM reads from an assigned VF. 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:
@@ -122,6 +122,7 @@
|
||||
#define PCIR_SRIOV_NUMVFS 0x10U
|
||||
#define PCIR_SRIOV_FST_VF_OFF 0x14U
|
||||
#define PCIR_SRIOV_VF_STRIDE 0x16U
|
||||
#define PCIR_SRIOV_VF_DEV_ID 0x1AU
|
||||
#define PCIR_SRIOV_VF_BAR_OFF 0x24U
|
||||
#define PCIM_SRIOV_VF_ENABLE 0x1U
|
||||
|
||||
|
Reference in New Issue
Block a user