mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 06:13:46 +08:00
b7d89466dd
Clean up includes so that osdep.h is included first and headers which it implies are not included manually. This commit was created with scripts/clean-includes, with the changes to the following files manually reverted: contrib/libvhost-user/libvhost-user-glib.h contrib/libvhost-user/libvhost-user.c contrib/libvhost-user/libvhost-user.h linux-user/mips64/cpu_loop.c linux-user/mips64/signal.c linux-user/sparc64/cpu_loop.c linux-user/sparc64/signal.c linux-user/x86_64/cpu_loop.c linux-user/x86_64/signal.c target/s390x/gen-features.c tests/migration/s390x/a-b-bios.c tests/test-rcu-simpleq.c tests/test-rcu-tailq.c Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20181204172535.2799-1-armbru@redhat.com> Acked-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Halil Pasic <pasic@linux.ibm.com> Acked-by: Yuval Shaia <yuval.shaia@oracle.com> Acked-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu>
52 lines
1.8 KiB
C
52 lines
1.8 KiB
C
/*
|
|
* QTest TPM utilities
|
|
*
|
|
* Copyright (c) 2018 IBM Corporation
|
|
*
|
|
* Authors:
|
|
* Stefan Berger <stefanb@linux.vnet.ibm.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef TESTS_TPM_UTIL_H
|
|
#define TESTS_TPM_UTIL_H
|
|
|
|
#include "io/channel-socket.h"
|
|
|
|
typedef void (tx_func)(QTestState *s,
|
|
const unsigned char *req, size_t req_size,
|
|
unsigned char *rsp, size_t rsp_size);
|
|
|
|
void tpm_util_crb_transfer(QTestState *s,
|
|
const unsigned char *req, size_t req_size,
|
|
unsigned char *rsp, size_t rsp_size);
|
|
void tpm_util_tis_transfer(QTestState *s,
|
|
const unsigned char *req, size_t req_size,
|
|
unsigned char *rsp, size_t rsp_size);
|
|
|
|
void tpm_util_startup(QTestState *s, tx_func *tx);
|
|
void tpm_util_pcrextend(QTestState *s, tx_func *tx);
|
|
void tpm_util_pcrread(QTestState *s, tx_func *tx,
|
|
const unsigned char *exp_resp, size_t exp_resp_size);
|
|
|
|
bool tpm_util_swtpm_has_tpm2(void);
|
|
|
|
gboolean tpm_util_swtpm_start(const char *path, GPid *pid,
|
|
SocketAddress **addr, GError **error);
|
|
void tpm_util_swtpm_kill(GPid pid);
|
|
|
|
void tpm_util_migrate(QTestState *who, const char *uri);
|
|
|
|
void tpm_util_migration_start_qemu(QTestState **src_qemu,
|
|
QTestState **dst_qemu,
|
|
SocketAddress *src_tpm_addr,
|
|
SocketAddress *dst_tpm_addr,
|
|
const char *miguri,
|
|
const char *ifmodel);
|
|
|
|
void tpm_util_wait_for_migration_complete(QTestState *who);
|
|
|
|
#endif /* TESTS_TPM_UTIL_H */
|