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