DM: TPM: Do not set VTPM and passthough TPM simultaneously

The TPM information in ACPI table is for both VPTM and passthough TPM,
so only one TPM device is allowed.

Tracked-On: #5913
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
Tao Yuhong
2021-04-20 07:15:29 -04:00
committed by wenlingz
parent cb8a6a7514
commit 63dd23bc9e
3 changed files with 5 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ extern bool lapic_pt;
extern bool is_rtvm;
extern bool pt_tpm2;
extern bool pt_rtct;
extern bool vtpm2;
extern bool is_winvm;
int vmexit_task_switch(struct vmctx *ctx, struct vhm_request *vhm_req,