2018-05-22 23:13:37 +08:00
|
|
|
choice
|
|
|
|
prompt "Platform"
|
2018-06-10 11:48:45 +08:00
|
|
|
default PLATFORM_SBL
|
2018-05-22 23:13:37 +08:00
|
|
|
|
|
|
|
config PLATFORM_UEFI
|
|
|
|
bool "UEFI"
|
|
|
|
select EFI_STUB
|
|
|
|
|
|
|
|
config PLATFORM_SBL
|
|
|
|
bool "SBL"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2018-07-18 06:16:38 +08:00
|
|
|
choice
|
|
|
|
prompt "Hypervisor mode"
|
|
|
|
default SHARING_MODE
|
|
|
|
|
|
|
|
config SHARING_MODE
|
|
|
|
bool "Sharing mode"
|
|
|
|
|
|
|
|
config PARTITION_MODE
|
|
|
|
bool "Partition mode"
|
|
|
|
depends on PLATFORM_SBL
|
|
|
|
endchoice
|
|
|
|
|
2018-06-10 11:48:45 +08:00
|
|
|
config PLATFORM
|
|
|
|
string
|
|
|
|
default "uefi" if PLATFORM_UEFI
|
|
|
|
default "sbl" if PLATFORM_SBL
|
|
|
|
|
2018-06-10 14:50:58 +08:00
|
|
|
config RELEASE
|
|
|
|
bool "Release build"
|
|
|
|
default n
|
|
|
|
|
2018-09-26 11:24:38 +08:00
|
|
|
config MAX_VM_NUM
|
|
|
|
int "Maximum number of VM"
|
2018-10-11 09:33:13 +08:00
|
|
|
range 1 8
|
|
|
|
default 4
|
|
|
|
|
|
|
|
config MAX_VCPUS_PER_VM
|
|
|
|
int "Maximum number of VCPUS per VM"
|
|
|
|
range 1 8
|
2018-09-26 11:24:38 +08:00
|
|
|
default 4
|
|
|
|
|
2018-10-24 13:28:13 +08:00
|
|
|
config MAX_PCPU_NUM
|
|
|
|
int "Maximum number of PCPU"
|
|
|
|
range 1 8
|
|
|
|
default 8
|
|
|
|
|
2018-06-04 15:04:25 +08:00
|
|
|
config MAX_IOMMU_NUM
|
|
|
|
int "Maximum number of iommu dev"
|
2018-10-11 23:00:45 +08:00
|
|
|
range 1 2
|
2018-06-04 15:04:25 +08:00
|
|
|
default 2
|
|
|
|
|
2018-05-22 23:13:37 +08:00
|
|
|
config STACK_SIZE
|
|
|
|
hex "Capacity of each stack used in the hypervisor"
|
|
|
|
default 0x2000
|
|
|
|
|
|
|
|
config LOG_BUF_SIZE
|
|
|
|
hex "Capacity of logbuf"
|
|
|
|
default 0x100000
|
|
|
|
|
|
|
|
config LOG_DESTINATION
|
|
|
|
int "Bitmap of consoles where logs are printed"
|
2018-10-11 23:00:45 +08:00
|
|
|
range 0 7
|
2018-08-01 13:23:35 +08:00
|
|
|
default 7
|
2018-10-11 23:00:45 +08:00
|
|
|
help
|
|
|
|
A bitmap indicating the destinations of log messages. Currently there
|
|
|
|
are 3 destinations available. Bit 0 represents the serial console, bit
|
|
|
|
1 the SOS ACRN log and bit 2 NPK log.
|
2018-05-22 23:13:37 +08:00
|
|
|
|
|
|
|
config CPU_UP_TIMEOUT
|
|
|
|
int "Timeout in ms when bringing up secondary CPUs"
|
2018-10-11 23:00:45 +08:00
|
|
|
range 100 200
|
2018-05-22 23:13:37 +08:00
|
|
|
default 100
|
2018-10-11 23:00:45 +08:00
|
|
|
help
|
|
|
|
A 32-bit integer specifying the timeout in microsecond when waiting for
|
|
|
|
secondary CPUs to start up.
|
2018-05-22 23:13:37 +08:00
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "serial IO type"
|
|
|
|
default SERIAL_MMIO if PLATFORM_SBL
|
|
|
|
default SERIAL_PIO if PLATFORM_UEFI
|
|
|
|
|
|
|
|
config SERIAL_MMIO
|
|
|
|
bool "MMIO"
|
|
|
|
|
|
|
|
config SERIAL_PIO
|
|
|
|
bool "PIO"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config SERIAL_MMIO_BASE
|
|
|
|
hex "Base address of serial MMIO region"
|
|
|
|
depends on SERIAL_MMIO
|
|
|
|
default 0xfc000000
|
2018-10-11 23:00:45 +08:00
|
|
|
help
|
|
|
|
A 64-bit integer indicating the base physical address of the
|
|
|
|
memory-mapped UART registers.
|
2018-05-22 23:13:37 +08:00
|
|
|
|
|
|
|
config SERIAL_PIO_BASE
|
|
|
|
hex "Base address of serial PIO region"
|
|
|
|
depends on SERIAL_PIO
|
|
|
|
default 0x3f8
|
2018-10-11 23:00:45 +08:00
|
|
|
help
|
|
|
|
The base of the UART ports. This is logically 16-bit but used as a
|
|
|
|
64-bit integer.
|
2018-05-22 23:13:37 +08:00
|
|
|
|
|
|
|
config MALLOC_ALIGN
|
|
|
|
int "Block size in the heap for malloc()"
|
2018-10-11 23:00:45 +08:00
|
|
|
range 8 32
|
2018-05-22 23:13:37 +08:00
|
|
|
default 16
|
|
|
|
|
|
|
|
config NUM_ALLOC_PAGES
|
|
|
|
hex "Capacity in pages of the heap for page_alloc()"
|
|
|
|
default 0x1000
|
|
|
|
|
|
|
|
config HEAP_SIZE
|
|
|
|
hex "Capacity of the heap for malloc()"
|
|
|
|
default 0x100000
|
|
|
|
|
|
|
|
config CONSOLE_LOGLEVEL_DEFAULT
|
|
|
|
int "Default loglevel on the serial console"
|
2018-10-11 23:00:45 +08:00
|
|
|
range 0 6
|
2018-06-19 13:32:59 +08:00
|
|
|
default 3
|
2018-05-22 23:13:37 +08:00
|
|
|
|
|
|
|
config MEM_LOGLEVEL_DEFAULT
|
|
|
|
int "Default loglevel in memory"
|
2018-10-11 23:00:45 +08:00
|
|
|
range 0 6
|
2018-06-19 13:32:59 +08:00
|
|
|
default 5
|
2018-05-22 23:13:37 +08:00
|
|
|
|
2018-08-01 13:23:35 +08:00
|
|
|
config NPK_LOGLEVEL_DEFAULT
|
|
|
|
int "Default loglevel for the hypervisor NPK log"
|
2018-10-11 23:00:45 +08:00
|
|
|
range 0 6
|
2018-08-01 13:23:35 +08:00
|
|
|
default 5
|
|
|
|
|
2018-05-22 23:13:37 +08:00
|
|
|
config LOW_RAM_SIZE
|
|
|
|
hex "Size of the low RAM region"
|
2018-05-03 14:39:57 +08:00
|
|
|
default 0x00010000
|
2018-10-11 23:00:45 +08:00
|
|
|
help
|
|
|
|
A 32-bit integer indicating the size of RAM region below address
|
|
|
|
0x10000, starting from address 0x0.
|
2018-05-22 23:13:37 +08:00
|
|
|
|
|
|
|
config RAM_START
|
|
|
|
hex "Address of the RAM region assigned to the hypervisor"
|
|
|
|
default 0x6e000000 if PLATFORM_SBL
|
2018-06-23 00:02:49 +08:00
|
|
|
default 0x00100000 if PLATFORM_UEFI
|
2018-10-11 23:00:45 +08:00
|
|
|
help
|
|
|
|
A 64-bit integer indicating the base address to where the hypervisor
|
|
|
|
should be loaded to. If RELOC is disabled the bootloader is required to
|
|
|
|
load the hypervisor to this specific address. Otherwise the hypervisor
|
|
|
|
will not boot.With RELOC enabled the hypervisor is capable of relocating
|
|
|
|
its symbols to where it is placed at, and thus the bootloader may not
|
|
|
|
place the hypervisor at this specific address.
|
2018-05-22 23:13:37 +08:00
|
|
|
|
|
|
|
config RAM_SIZE
|
|
|
|
hex "Size of the RAM region assigned to the hypervisor"
|
|
|
|
default 0x02000000
|
2018-10-11 23:00:45 +08:00
|
|
|
help
|
|
|
|
A 64-bit integer indicating the size of RAM assigned to the
|
|
|
|
hypervisor. It is ensured at link time that the footprint of the
|
|
|
|
hypervisor does not exceed this size.
|
2018-05-22 23:13:37 +08:00
|
|
|
|
2018-09-13 16:17:38 +08:00
|
|
|
config CONSTANT_ACPI
|
|
|
|
bool "The platform ACPI info is constant"
|
|
|
|
default n
|
|
|
|
|
2018-05-22 23:13:37 +08:00
|
|
|
config DMAR_PARSE_ENABLED
|
|
|
|
bool
|
|
|
|
default n if PLATFORM_SBL
|
|
|
|
default y if PLATFORM_UEFI
|
|
|
|
|
|
|
|
config GPU_SBDF
|
|
|
|
hex
|
|
|
|
depends on DMAR_PARSE_ENABLED
|
|
|
|
default 0x00000010
|
2018-10-11 23:00:45 +08:00
|
|
|
help
|
|
|
|
A 32-bit integer encoding the segment, bus, device and function of the
|
|
|
|
GPU.
|
2018-05-22 23:13:37 +08:00
|
|
|
|
|
|
|
config EFI_STUB
|
|
|
|
bool
|
|
|
|
depends on PLATFORM_UEFI
|
|
|
|
default y
|
|
|
|
|
|
|
|
config UEFI_OS_LOADER_NAME
|
|
|
|
string "UEFI OS loader name"
|
|
|
|
depends on PLATFORM_UEFI
|
|
|
|
default "\\EFI\\org.clearlinux\\bootloaderx64.efi"
|
2018-06-09 03:59:50 +08:00
|
|
|
|
|
|
|
config MTRR_ENABLED
|
|
|
|
bool
|
|
|
|
default y
|
2018-07-11 19:47:54 +08:00
|
|
|
|
|
|
|
config RELOC
|
|
|
|
bool "Enable relocation"
|
2018-09-29 13:30:10 +08:00
|
|
|
default n
|
2018-09-26 23:32:30 +08:00
|
|
|
|
|
|
|
config IOMMU_INIT_BUS_LIMIT
|
|
|
|
hex "bus limitation when iommu init"
|
|
|
|
default 0xf if PLATFORM_SBL
|
|
|
|
default 0xff if PLATFORM_UEFI
|