mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
e7b3af8159
Per supported platforms doc[1], the various min glib on relevant distros is: RHEL-7: 2.50.3 Debian (Stretch): 2.50.3 Debian (Jessie): 2.42.1 OpenBSD (Ports): 2.54.3 FreeBSD (Ports): 2.50.3 OpenSUSE Leap 15: 2.54.3 SLE12-SP2: 2.48.2 Ubuntu (Xenial): 2.48.0 macOS (Homebrew): 2.56.0 This suggests that a minimum glib of 2.42 is a reasonable target. The GLibC compile farm, however, uses Ubuntu 14.04 (Trusty) which only has glib 2.40.0, and this is needed for testing during merge. Thus an exception is made to the documented platform support policy to allow for all three current LTS releases to be supported. Docker jobs that not longer satisfy this new min version are removed. [1] https://qemu.weilnetz.de/doc/qemu-doc.html#Supported-build-platforms Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
38 lines
835 B
C
38 lines
835 B
C
/*
|
|
* Minimal TPM emulator for TPM test cases
|
|
*
|
|
* Copyright (c) 2018 Red Hat, Inc.
|
|
*
|
|
* Authors:
|
|
* Marc-André Lureau <marcandre.lureau@redhat.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_EMU_H
|
|
#define TESTS_TPM_EMU_H
|
|
|
|
#define TPM_RC_FAILURE 0x101
|
|
#define TPM2_ST_NO_SESSIONS 0x8001
|
|
|
|
struct tpm_hdr {
|
|
uint16_t tag;
|
|
uint32_t len;
|
|
uint32_t code; /*ordinal/error */
|
|
char buffer[];
|
|
} QEMU_PACKED;
|
|
|
|
typedef struct TestState {
|
|
GMutex data_mutex;
|
|
GCond data_cond;
|
|
SocketAddress *addr;
|
|
QIOChannel *tpm_ioc;
|
|
GThread *emu_tpm_thread;
|
|
struct tpm_hdr *tpm_msg;
|
|
} TestState;
|
|
|
|
void tpm_emu_test_wait_cond(TestState *s);
|
|
void *tpm_emu_ctrl_thread(void *data);
|
|
|
|
#endif /* TEST_TPM_EMU_H */
|