acrn-hypervisor/misc/config_tools
Yang,Yu-chu 9736ab8295 config-tools: add bdf static allocator
Assign bdf to pci emulated and passthrough devices.

For pre-launched VM, assigns unique bdf to passthrough devices, inter-vm
shared memory, pci vuart(console and communication vuarts).

For SOS vm, assigns unique bdf to inter-vm shared memory and pci
vuart(console and communication vuarts).

The bdf follows the rules below:
- the bdf 00:00.0 is reserved for pci hostbridge
- the assigned bdf range: bus is 0x00, dev is in range [0x1, 0x20)
and the fuc is 0x00
- the bdf must be unique, which means any vm's emulated devices cannot
share the same bdf with existing devices
- some devices's bdf is hardcoded, modify its bdf would leads the
device cannot be dicoverd by os. A HARDCODED_BDF_LIST in bdf.py documents
them
- the passthrough devices' bdf can be reused in SOS vm

Tracked-On: #6024
Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2021-05-24 21:53:22 +08:00
..
acpi_gen config-tool: rename PSRARM to SSRAM 2021-05-17 14:31:42 +08:00
acpi_template config_tools: add PTCT configs 2021-02-24 09:27:42 +08:00
board_config config-tool: rename PSRARM to SSRAM 2021-05-17 14:31:42 +08:00
board_inspector board_inspector/acpiparser: enable parsing RTCT v2 2021-05-19 08:53:38 +08:00
config_app config-tool: rename PSRARM to SSRAM 2021-05-17 14:31:42 +08:00
data Config_tools: Update board xml for acrn 2.5 2021-05-24 16:35:46 +08:00
hv_config config-tool: rename PSRARM to SSRAM 2021-05-17 14:31:42 +08:00
kconfig acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
launch_config config-tool: rename PSRARM to SSRAM 2021-05-17 14:31:42 +08:00
library config-tool: rename PSRARM to SSRAM 2021-05-17 14:31:42 +08:00
scenario_config config-tool: rename PSRARM to SSRAM 2021-05-17 14:31:42 +08:00
schema board_inspector/acpiparser: enable parsing RTCT v2 2021-05-19 08:53:38 +08:00
static_allocators config-tools: add bdf static allocator 2021-05-24 21:53:22 +08:00
xforms Config_tools: Update ramdisk logic 2021-05-21 09:20:10 +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.