acrn-hypervisor/misc/config_tools
Yang,Yu-chu 1c84d88b4a config-tools: add pio static allocator
This file allocates the resource of pio base.
The available pio base is in ['0x3F8', '0x2F8', '0x3E8', '0x2E8'] and it
cannot be used by native device.

When any of sos legacy vuarts are enabled, assign a pio base to legancy
vuarts' base.

The allocator follows rules:
1. An SOS legacy vuart only support PIO vuart.
2. To assign a pio base for sos legacy vuart 0:
   - If the hv/DEBUG_OPTIONS/SERIAL_CONSOLE is one of
     [ttys0, ttys1, ttys2, ttys3] and it's a pio vuart in the native
     environment, the pio base of SOS legacy vuart 0 would be the same as
     native one.
   - If the hv/DEBUG_OPTIONS/SERIAL_CONSOLE is not one of
     [ttys0, ttys1, ttys2, ttys3], assigns a pio base to SOS legacy vuart 0
     from avilable pio base.
   - If the hv/DEBUG_OPTIONS/SERIAL_CONSOLE is not one of
     [ttys0, ttys1, ttys2, ttys3] but a pio vuart, will assigns a pio
     base to SOS legacy vuart 0 from avilable pio base and raise a
     warning to user.
3. To assign a pio base for sos legacy vuart 1:
   - Assigns a pio base to SOS legacy vuart 1 from avilable pio base.
   - If all the available pio bases list is empty (which means all are
     in used by native), it assigns one of the pio base to SOS legacy
     vuart 1 anyway, but raise a warning to user.
4. Assigned pio bases must be unique.

Tracked-On: #5980
Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2021-05-07 14:39:08 +08:00
..
acpi_gen config_tools: update condition for bootargs error check 2021-02-09 09:00:46 +08:00
acpi_template config_tools: add PTCT configs 2021-02-24 09:27:42 +08:00
board_config hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
config_app config-tools: change default industry kata vm id to 7 2021-04-20 10:28:11 +08:00
data config-tools: replace <guest_flag/> with <guest_flag> 2021-05-07 14:39:08 +08:00
hv_config config_tools: update IVSHMEM_SHM_SIZE part for HV_RAM_SIZE calculation 2021-04-23 11:23:55 +08:00
kconfig acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
launch_config config_tools: add psram config in launch config 2021-03-03 16:15:52 +08:00
library config-tools: refine append_node and add get_node 2021-05-07 14:39:08 +08:00
scenario_config config_tools: remove UOS_RAM_SIZE and SOS_RAM_SIZE in scenario config 2021-04-19 14:45:10 +08:00
schema config_tools: remove UOS_RAM_SIZE and SOS_RAM_SIZE in scenario config 2021-04-19 14:45:10 +08:00
static_allocators config-tools: add pio static allocator 2021-05-07 14:39:08 +08:00
target config_tools/target: generate Software SRAM related info 2021-01-27 16:39:24 +08:00
xforms config-tools: add lib.xsl to config_tools/xforms 2021-05-07 14:39:08 +08:00
README acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00

folder structure

	Kconfig		: Select working scenario and target board, configure ACRN hypervisor capabilities and features.
	target		: Get target board information under native Linux environment and generate board_info XML.
	board_config	: Parse board_info XML and scenario XML to generate board related configuration files under misc/acrn-config/xmls/board-xmls/ folder.
	scenario_config	: Parse board_info XML and scenario XML to generate scenario based VM configuration files under misc/acrn-config/xmls/config-xmls/$(BOARD)/ folder.
	launch_config	: Parse board_info XML, scenario XML and devicemodel param XML to generate launch script for post-launched vm under misc/acrn-config/xmls/config-xmls/$(BOARD)/ folder.
	library		: The folder stores shared software modules or libs for acrn-config offline tool.