From: "Richard W.M. Jones" <rjones@redhat.com>
To: Amarnath Valluri <amarnath.valluri@intel.com>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
marcandre.lureau@gmail.com, stefanb@linux.vnet.ibm.com
Subject: Re: [Qemu-devel] [PATCH v10 9/9] tpm: Move tpm_cleanup() to right place
Date: Thu, 19 Oct 2017 08:45:56 +0100 [thread overview]
Message-ID: <20171019074556.GC18719@redhat.com> (raw)
In-Reply-To: <1506683421-27004-10-git-send-email-amarnath.valluri@intel.com>
On Fri, Sep 29, 2017 at 02:10:21PM +0300, Amarnath Valluri wrote:
> As Emulator TPM backend uses chardev, tpm cleanup should happen before chardev
> similar to other vhost-users.
>
> Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
> ---
> tpm.c | 1 -
> vl.c | 1 +
> 2 files changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tpm.c b/tpm.c
> index 3b8c7ed..3122227 100644
> --- a/tpm.c
> +++ b/tpm.c
> @@ -172,7 +172,6 @@ int tpm_init(void)
> return -1;
> }
>
> - atexit(tpm_cleanup);
> return 0;
> }
>
> diff --git a/vl.c b/vl.c
> index 9bb5058..ed86209 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -4893,6 +4893,7 @@ int main(int argc, char **argv, char **envp)
> res_free();
>
> /* vhost-user must be cleaned up before chardevs. */
> + tpm_cleanup();
> net_cleanup();
> audio_cleanup();
> monitor_cleanup();
This breaks compilation with --disable-tpm. I'll post a trivial
patch shortly.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
prev parent reply other threads:[~2017-10-19 7:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-29 11:10 [Qemu-devel] [PATCH v10 0/9] Provide support for the software TPM Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 1/9] tpm-backend: Remove unneeded member variable from backend class Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 2/9] tpm-backend: Move thread handling inside TPMBackend Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 3/9] tpm-backend: Initialize and free data members in it's own methods Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 4/9] tpm-backend: Made few interface methods optional Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 5/9] tpm backend: Add new api to read backend TpmInfo Amarnath Valluri
2017-10-04 13:45 ` Marc-André Lureau
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 6/9] tpm-backend: Move realloc_buffer() implementation to tpm-tis model Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 7/9] tpm-passthrough: move reusable code to utils Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 8/9] tpm: Added support for TPM emulator Amarnath Valluri
2017-10-03 21:21 ` Stefan Berger
2017-10-04 7:45 ` Valluri, Amarnath
2017-10-04 13:35 ` Stefan Berger
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 9/9] tpm: Move tpm_cleanup() to right place Amarnath Valluri
2017-09-29 12:16 ` Marc-André Lureau
2017-10-04 13:32 ` Stefan Berger
2017-10-19 7:45 ` Richard W.M. Jones [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171019074556.GC18719@redhat.com \
--to=rjones@redhat.com \
--cc=amarnath.valluri@intel.com \
--cc=marcandre.lureau@gmail.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanb@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).