mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-21 21:19:35 +00:00
DM: remove unused function swtpm_reset_tpm_established_flag
Change-Id: I8253df84ef490418e37ac3d565dcdc7bb8123f3b Tracked-On: #3123 Signed-off-by: Ying Liu <ying2.liu@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
parent
2a33d52ec6
commit
4e7703161e
@ -762,31 +762,6 @@ bool swtpm_get_tpm_established_flag(void)
|
|||||||
return tpm_context.established_flag;
|
return tpm_context.established_flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
int swtpm_reset_tpm_established_flag(void)
|
|
||||||
{
|
|
||||||
ptm_reset_est reset_est;
|
|
||||||
ptm_res res;
|
|
||||||
|
|
||||||
reset_est.u.req.loc = tpm_context.cur_locty_number;
|
|
||||||
if (swtpm_ctrlcmd(tpm_context.ctrl_chan_fd, CMD_RESET_TPMESTABLISHED,
|
|
||||||
&reset_est, sizeof(reset_est),
|
|
||||||
sizeof(reset_est), NULL, 0) < 0) {
|
|
||||||
printf("swtpm: Could not reset the establishment bit: %s",
|
|
||||||
strerror(errno));
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
res = __builtin_bswap32(reset_est.u.resp.tpm_result);
|
|
||||||
if (res) {
|
|
||||||
printf("swtpm: TPM result for rest establixhed flag: 0x%x", res);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
tpm_context.established_flag_cached = 0;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void swtpm_cancel_cmd(void)
|
void swtpm_cancel_cmd(void)
|
||||||
{
|
{
|
||||||
ptm_res res = 0;
|
ptm_res res = 0;
|
||||||
|
@ -36,9 +36,6 @@ void deinit_tpm_emulator(void);
|
|||||||
/* Send Ctrl channel command CMD_GET_TPMESTABLISHED to SWTPM */
|
/* Send Ctrl channel command CMD_GET_TPMESTABLISHED to SWTPM */
|
||||||
bool swtpm_get_tpm_established_flag(void);
|
bool swtpm_get_tpm_established_flag(void);
|
||||||
|
|
||||||
/* Send Ctrl channel command CMD_RESET_TPMESTABLISHED to SWTPM */
|
|
||||||
int swtpm_reset_tpm_established_flag(void);
|
|
||||||
|
|
||||||
/* Send TPM2 command request to SWTPM by using Cmd channel */
|
/* Send TPM2 command request to SWTPM by using Cmd channel */
|
||||||
int swtpm_handle_request(TPMCommBuffer *cmd);
|
int swtpm_handle_request(TPMCommBuffer *cmd);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user