mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
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:
committed by
ACRN System Integration
parent
adbaaaf6cb
commit
eb21f205e4
@@ -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) {
|
||||
|
Reference in New Issue
Block a user