hv: vm_config: build pci device configure for SOS

Align SOS pci device configure with pre-launched VM and filter pre-launched VM's
PCI PT device from SOS pci device configure.

Tracked-On: #3475
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
Li, Fei1
2019-08-02 08:17:02 +08:00
committed by ACRN System Integration
parent adbaaaf6cb
commit eb21f205e4
11 changed files with 112 additions and 9 deletions

View File

@@ -27,6 +27,7 @@
#include <board.h>
#include <sgx.h>
#include <sbuf.h>
#include <pci_dev.h>
vm_sw_loader_t vm_sw_loader;
@@ -447,8 +448,9 @@ int32_t create_vm(uint16_t vm_id, struct acrn_vm_config *vm_config, struct acrn_
status = init_vm_boot_info(vm);
if (status != 0) {
need_cleanup = true;
} else {
initialize_sos_pci_dev_config(vm_config);
}
} else {
/* For PRE_LAUNCHED_VM and POST_LAUNCHED_VM */
if ((vm_config->guest_flags & GUEST_FLAG_SECURE_WORLD_ENABLED) != 0U) {