mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-08 08:26:55 +00:00
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> |
||
---|---|---|
.. | ||
acpi_gen | ||
acpi_template | ||
board_config | ||
config_app | ||
data | ||
hv_config | ||
kconfig | ||
launch_config | ||
library | ||
scenario_config | ||
schema | ||
static_allocators | ||
target | ||
xforms | ||
README |
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.