mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 06:29:19 +00:00
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:
parent
cb8a6a7514
commit
63dd23bc9e
@ -92,6 +92,7 @@ bool lapic_pt;
|
||||
bool is_rtvm;
|
||||
bool pt_tpm2;
|
||||
bool pt_rtct;
|
||||
bool vtpm2;
|
||||
bool is_winvm;
|
||||
bool skip_pci_mem64bar_workaround = false;
|
||||
|
||||
@ -945,7 +946,8 @@ main(int argc, char *argv[])
|
||||
pt_rtct = true;
|
||||
break;
|
||||
case CMD_OPT_ACPIDEV_PT:
|
||||
if (parse_pt_acpidev(optarg) != 0)
|
||||
/* FIXME: check acpi TPM device rules in acpi device famework init functions */
|
||||
if (vtpm2 || parse_pt_acpidev(optarg) != 0)
|
||||
errx(EX_USAGE, "invalid pt acpi dev param %s", optarg);
|
||||
break;
|
||||
case CMD_OPT_MMIODEV_PT:
|
||||
|
@ -73,6 +73,7 @@ int acrn_parse_vtpm2(char *arg)
|
||||
return -1;
|
||||
strncpy(sock_path, value, len + 1);
|
||||
}
|
||||
vtpm2 = true;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user