mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
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> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
a3ebb580a2
commit
f8d6461693
8 changed files with 56 additions and 59 deletions
|
@ -17,6 +17,7 @@
|
|||
#include "libqtest.h"
|
||||
#include "qemu/module.h"
|
||||
#include "tpm-tests.h"
|
||||
#include "tpm-tis-util.h"
|
||||
#include "hw/acpi/tpm.h"
|
||||
|
||||
uint64_t tpm_tis_base_addr = TPM_TIS_ADDR_BASE;
|
||||
|
@ -31,7 +32,7 @@ static void tpm_tis_swtpm_test(const void *data)
|
|||
{
|
||||
const TestState *ts = data;
|
||||
|
||||
tpm_test_swtpm_test(ts->src_tpm_path, tpm_util_tis_transfer,
|
||||
tpm_test_swtpm_test(ts->src_tpm_path, tpm_tis_transfer,
|
||||
"tpm-tis", NULL);
|
||||
}
|
||||
|
||||
|
@ -40,7 +41,7 @@ static void tpm_tis_swtpm_migration_test(const void *data)
|
|||
const TestState *ts = data;
|
||||
|
||||
tpm_test_swtpm_migration_test(ts->src_tpm_path, ts->dst_tpm_path, ts->uri,
|
||||
tpm_util_tis_transfer, "tpm-tis", NULL);
|
||||
tpm_tis_transfer, "tpm-tis", NULL);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue