hv: implement sharing_mode.c for PCI emulation in sharing mode

Compared with partition_mode.c, the major difference between them is
the list of PCI devices is statically defined or dynamically
enumerated and allocated.

Tracked-On: #1568
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Signed-off-by: Zide Chen <zide.chen@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Zide Chen
2018-10-09 10:24:05 -07:00
committed by lijinxia
parent 7c506ebc69
commit 83dbfe4fd3
5 changed files with 223 additions and 0 deletions

View File

@@ -201,6 +201,11 @@ config IOMMU_INIT_BUS_LIMIT
default 0xf if PLATFORM_SBL
default 0xff if PLATFORM_UEFI
config MAX_PCI_DEV_NUM
int "Maximum number of PCI dev"
range 1 1024
default 96
config MAX_MSIX_TABLE_NUM
int "Maximum number of MSI-X Table per device"
range 1 2048