hv: Add support to add IR tables

Interrupt Remapping hardware in x86 can hold 64K entries with each entry
of size 16 bytes. So 256 entries occupy 4K. Adding a configuration for
developer to choose number of IR entries, in multiples of 256. ACRN does
not boot on platforms that does not support Interrupt Remapping and
Extended Interrupt Mode

Tracked-On: #2426
Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com>
This commit is contained in:
Grandhi, Sainath
2019-01-26 00:04:49 -08:00
committed by Eddie Dong
parent cb46937bf5
commit 7104f0a512
2 changed files with 55 additions and 0 deletions

View File

@@ -329,6 +329,12 @@ config MAX_IOAPIC_NUM
range 1 8
default 1
config MAX_IR_ENTRIES
int "Maximum number of Interrupt Remapping Entries"
default 256
help
Minimum value is 256. Value must be 2^n.
config IOMMU_BUS_NUM
hex "Highest PCI bus ID used during IOMMU initialization"
default 0x10 if PLATFORM_SBL