tests: tpm-emu: Remove assert on TPM2_ST_NO_SESSIONS
commitc7504b9f32f2ee6ddcb2b0d69219046b3fa48c2d
authorEric Auger <eric.auger@redhat.com>
Tue, 9 Jun 2020 12:54:07 +0000 (9 14:54 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jun 2020 18:18:04 +0000 (9 14:18 -0400)
treeebca81bc620c492f40650a56031d382ebe10b733
parent6d6d1a23fc2ed42ab6ac76e289000474def8ff0c
tests: tpm-emu: Remove assert on TPM2_ST_NO_SESSIONS

bios-tables-test executes SeaBIOS. Indeed FW is needed to
fetch tables from QEMU and put them into the guest RAM. Also
the FW patches cross table pointers. At some point, SeaBIOS
ends up calling the TPM2_CC_HierarchyControl command with
TPM2_ST_SESSIONS tag, most probably steming from
tpm_set_failure/tpm20_hierarchycontrol SeaBIOS call path.
This causes an assert() in the qtest tpm emulation code.

As the goal here is not to boot SeaBIOS completely but just
let it grab the ACPI tables and consolidate them, let's just
remove the assert().

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20200609125409.24179-4-eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/qtest/tpm-emu.c