diff options
author | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2018-03-28 15:43:30 -0400 |
---|---|---|
committer | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2018-03-29 17:41:02 -0400 |
commit | 025bc9361960ba8a7ce8204a6128d716af0910fa (patch) | |
tree | 6e84755b810488375e3d1e1f6eefbc55ba6c5be2 | |
parent | 3a3c8735027a20ddd51c8f322f78ede3f52f90f9 (diff) | |
download | qemu-025bc9361960ba8a7ce8204a6128d716af0910fa.zip |
tpm: CRB: Reset Granted flag when relinquishing locality
Reset the Granted flag when relinquishing a locality.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r-- | hw/tpm/tpm_crb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/tpm/tpm_crb.c b/hw/tpm/tpm_crb.c index e728b551d9..ee6c87e8db 100644 --- a/hw/tpm/tpm_crb.c +++ b/hw/tpm/tpm_crb.c @@ -145,6 +145,8 @@ static void tpm_crb_mmio_write(void *opaque, hwaddr addr, case CRB_LOC_CTRL_RELINQUISH: ARRAY_FIELD_DP32(s->regs, CRB_LOC_STATE, locAssigned, 0); + ARRAY_FIELD_DP32(s->regs, CRB_LOC_STS, + Granted, 0); break; case CRB_LOC_CTRL_REQUEST_ACCESS: ARRAY_FIELD_DP32(s->regs, CRB_LOC_STS, |