From adb0e917e6ee93631e40265ca145bc31cd3b6c9a Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Wed, 14 Feb 2018 19:51:48 -0500 Subject: tests: add test for TPM TIS device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move the TPM TIS related register and flag #defines into include/hw/acpi/tpm.h for access by the test case. Write a test case that covers the TIS functionality. Add the tests cases to the MAINTAINERS file. Signed-off-by: Stefan Berger Reviewed-by: Marc-André Lureau --- tests/tpm-emu.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/tpm-emu.c') diff --git a/tests/tpm-emu.c b/tests/tpm-emu.c index cbb92af..4dada76 100644 --- a/tests/tpm-emu.c +++ b/tests/tpm-emu.c @@ -155,6 +155,13 @@ void *tpm_emu_ctrl_thread(void *data) qio_channel_write(ioc, (char *)&loc, sizeof(loc), &error_abort); break; } + case CMD_GET_TPMESTABLISHED: { + ptm_est est = { + .u.resp.bit = 0, + }; + qio_channel_write(ioc, (char *)&est, sizeof(est), &error_abort); + break; + } default: g_debug("unimplemented %u", cmd); g_assert_not_reached(); -- cgit v1.1