aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/tpm-crb-swtpm-test.c
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2023-03-31 13:30:50 -0400
committerStefan Berger <stefanb@linux.ibm.com>2023-04-20 08:17:15 -0400
commitea5e73b6f52179416cdee9db18bec36fc00cf280 (patch)
tree57cecfe21a1a9566f0bb774695924e46446e2f88 /tests/qtest/tpm-crb-swtpm-test.c
parentf0de635677f264f79c8f85389e6203e32c423351 (diff)
downloadqemu-ea5e73b6f52179416cdee9db18bec36fc00cf280.zip
qemu-ea5e73b6f52179416cdee9db18bec36fc00cf280.tar.gz
qemu-ea5e73b6f52179416cdee9db18bec36fc00cf280.tar.bz2
qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it
To be able to remove tpm_tis_base_addr from test cases that do not really need it move the tpm_util_tis_transmit() function into tpm-tis-utils.c and rename it to tpm_tis_transmit(). Fix a locality parameter in a test case on the way. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Ninad Palsule <ninad@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-id: 20230331173051.3857801-3-stefanb@linux.ibm.com
Diffstat (limited to 'tests/qtest/tpm-crb-swtpm-test.c')
-rw-r--r--tests/qtest/tpm-crb-swtpm-test.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/qtest/tpm-crb-swtpm-test.c b/tests/qtest/tpm-crb-swtpm-test.c
index 40254f7..ffeb1c3 100644
--- a/tests/qtest/tpm-crb-swtpm-test.c
+++ b/tests/qtest/tpm-crb-swtpm-test.c
@@ -19,9 +19,6 @@
#include "tpm-tests.h"
#include "hw/acpi/tpm.h"
-/* Not used but needed for linking */
-uint64_t tpm_tis_base_addr = TPM_TIS_ADDR_BASE;
-
typedef struct TestState {
char *src_tpm_path;
char *dst_tpm_path;