qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] tests: add test for TPM TIS device


From: Stefan Berger
Subject: Re: [Qemu-devel] [PATCH] tests: add test for TPM TIS device
Date: Thu, 15 Feb 2018 08:35:28 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

On 02/15/2018 07:35 AM, Marc-André Lureau wrote:
+#define DPRINTF_STS \
>+    DPRINTF("%s: %d: sts = 0x%08x\n", __func__, __LINE__, sts)
>+
>+typedef struct TestState {
>+    CompatGMutex data_mutex;
>+    CompatGCond data_cond;
>+    SocketAddress *addr;
>+    QIOChannel *tpm_ioc;
>+    GThread *emu_tpm_thread;
>+    struct tpm_hdr *tpm_msg;
>+} TestState;
We could avoid code duplication. What about adding a tests/tpm-emu.c/h ?

ok, let me give that a try.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]