acrn-config: refactor pci_dev_c.py and insert vuart device information

- Refactor pci_dev_c.py to insert devices information per VMs
- Add function to get unused vbdf form bus:dev.func 00:00.0 to 00:1F.7

Add pci devices variables to vm_configurations.c
- To pass the pci vuart information form tool, add pci_dev_num and
pci_devs initialization by tool
- Change CONFIG_SOS_VM in hypervisor/include/arch/x86/vm_config.h to
compromise vm_configurations.c

Tracked-On: #5426
Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
Yang, Yu-chu
2020-10-21 21:54:06 -07:00
committed by wenlingz
parent fc5add8dd6
commit 8c78590da7
4 changed files with 164 additions and 93 deletions

View File

@@ -39,9 +39,7 @@
#define CONFIG_SOS_VM .load_order = SOS_VM, \
.uuid = SOS_VM_UUID, \
.severity = SEVERITY_SOS, \
.pci_dev_num = 0U, \
.pci_devs = sos_pci_devs
.severity = SEVERITY_SOS
#define CONFIG_SAFETY_VM(idx) .load_order = PRE_LAUNCHED_VM, \
.uuid = SAFETY_VM_UUID##idx, \