mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-03 14:06: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> |
||
---|---|---|
.. | ||
lib | ||
bdf.py | ||
cpu_affinity.py | ||
gpa.py | ||
hv_ram.py | ||
intx.py | ||
main.py | ||
pio.py |