aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2018-03-28 15:43:30 -0400
committerStefan Berger <stefanb@linux.vnet.ibm.com>2018-03-29 17:41:02 -0400
commit025bc9361960ba8a7ce8204a6128d716af0910fa (patch)
tree6e84755b810488375e3d1e1f6eefbc55ba6c5be2
parent3a3c8735027a20ddd51c8f322f78ede3f52f90f9 (diff)
downloadqemu-025bc9361960ba8a7ce8204a6128d716af0910fa.zip
qemu-025bc9361960ba8a7ce8204a6128d716af0910fa.tar.gz
qemu-025bc9361960ba8a7ce8204a6128d716af0910fa.tar.bz2
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/tpm/tpm_crb.c b/hw/tpm/tpm_crb.c
index e728b55..ee6c87e 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,