hv: vtd: add config for bus limitation when init

Currently, hypervisor doesn't have the information of pci devices
on the platform when init. In order to reduce boot time and memory
usage, hypervisor set a bus limitation for pci devices when init vtd.
However, maximum bus number varies on different platforms.
This patch add a config for the bus limitation.
Set 0xF as the default value for the maximum bus number on sbl platform.
Set 0xFF as the default value for the maximum bus number on uefi platfrom.

Tracked-On: #1339
Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Binbin Wu
2018-09-26 23:32:30 +08:00
committed by lijinxia
parent 6fcaa1aecb
commit 2111fcffa5
2 changed files with 6 additions and 6 deletions

View File

@@ -147,3 +147,8 @@ config MTRR_ENABLED
config RELOC
bool "Enable relocation"
default y
config IOMMU_INIT_BUS_LIMIT
hex "bus limitation when iommu init"
default 0xf if PLATFORM_SBL
default 0xff if PLATFORM_UEFI