From 10d4773f1d2a3bb3c21da3195b58ead4e1446892 Mon Sep 17 00:00:00 2001 From: dongshen Date: Sat, 29 Aug 2020 09:48:15 -0700 Subject: [PATCH] hv: add a new field pt_p2sb_bar to struct acrn_vm_config On EHL platform, we need to pass through P2SB bridge to pre-launched VM. Use pt_p2sb_bar to indicate whether to passthru p2sb bridge to pre-launched VM or not. Tracked-On: #5221 Signed-off-by: dongshen --- hypervisor/include/arch/x86/vm_config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hypervisor/include/arch/x86/vm_config.h b/hypervisor/include/arch/x86/vm_config.h index feb5b5346..aac10c226 100644 --- a/hypervisor/include/arch/x86/vm_config.h +++ b/hypervisor/include/arch/x86/vm_config.h @@ -177,7 +177,7 @@ struct acrn_vm_config { struct acrn_vm_os_config os_config; /* OS information the VM */ /* - * below are varaible length members (per build). + * below are variable length members (per build). * SOS can get the vm_configs[] array through hypercall, but SOS may not * need to parse these members. */ @@ -189,6 +189,8 @@ struct acrn_vm_config { bool pt_tpm2; struct acrn_mmiodev mmiodevs[MAX_MMIO_DEV_NUM]; + + bool pt_p2sb_bar; /* whether to passthru p2sb bridge to pre-launched VM or not */ } __aligned(8); struct acrn_vm_config *get_vm_config(uint16_t vm_id);