acrn-hypervisor/misc/config_tools/static_allocators
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
..
lib config-tools: add get_shmem_regions and vm type checking to lib.py 2021-05-24 21:53:22 +08:00
bdf.py config-tools: add bdf static allocator 2021-05-24 21:53:22 +08:00
cpu_affinity.py config-tools: add cpu affinity static allocator 2021-05-07 14:39:08 +08:00
gpa.py config-tools: add methods to allocate mmio windows for emulated devices 2021-05-24 21:53:22 +08:00
hv_ram.py config-tools: refine append_node and add get_node 2021-05-07 14:39:08 +08:00
intx.py config-tools: add intx static allocator 2021-05-07 14:39:08 +08:00
main.py acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
pio.py config-tools: add pio static allocator 2021-05-07 14:39:08 +08:00