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 <dongsheng.x.zhang@intel.com>
This commit is contained in:
dongshen 2020-08-29 09:48:15 -07:00 committed by wenlingz
parent 678d8c1665
commit 10d4773f1d

View File

@ -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);