qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Berger <stefanb@linux.vnet.ibm.com>
To: Amarnath Valluri <amarnath.valluri@intel.com>, qemu-devel@nongnu.org
Cc: marcandre.lureau@gmail.com, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v10 9/9] tpm: Move tpm_cleanup() to right place
Date: Wed, 4 Oct 2017 09:32:57 -0400	[thread overview]
Message-ID: <93ea456a-09f4-cbf8-1cfe-b80664872c34@linux.vnet.ibm.com> (raw)
In-Reply-To: <1506683421-27004-10-git-send-email-amarnath.valluri@intel.com>

On 09/29/2017 07:10 AM, 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>

Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.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();

  parent reply	other threads:[~2017-10-04 13:33 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 [this message]
2017-10-19  7:45   ` Richard W.M. Jones

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=93ea456a-09f4-cbf8-1cfe-b80664872c34@linux.vnet.ibm.com \
    --to=stefanb@linux.vnet.ibm.com \
    --cc=amarnath.valluri@intel.com \
    --cc=marcandre.lureau@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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).