tpm: CRB: query backend for TPM established flag
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
de4a22d0fa
commit
ffbf24bdb2
@ -84,6 +84,12 @@ static uint64_t tpm_crb_mmio_read(void *opaque, hwaddr addr,
|
||||
unsigned offset = addr & 3;
|
||||
uint32_t val = *(uint32_t *)regs >> (8 * offset);
|
||||
|
||||
switch (addr) {
|
||||
case A_CRB_LOC_STATE:
|
||||
val |= !tpm_backend_get_tpm_established_flag(s->tpmbe);
|
||||
break;
|
||||
}
|
||||
|
||||
trace_tpm_crb_mmio_read(addr, size, val);
|
||||
|
||||
return val;
|
||||
|
Loading…
Reference in New Issue
Block a user