From nobody Mon Feb 9 21:21:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@gnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@gnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1506683864363290.6588720876598; Fri, 29 Sep 2017 04:17:44 -0700 (PDT) Received: from localhost ([::1]:34773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxtId-0000CA-J8 for importer@patchew.org; Fri, 29 Sep 2017 07:17:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxtBe-00032Y-SF for qemu-devel@nongnu.org; Fri, 29 Sep 2017 07:10:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxtBe-0006Mf-3w for qemu-devel@nongnu.org; Fri, 29 Sep 2017 07:10:30 -0400 Received: from mga07.intel.com ([134.134.136.100]:42442) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dxtBd-0005tE-QH for qemu-devel@nongnu.org; Fri, 29 Sep 2017 07:10:30 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP; 29 Sep 2017 04:10:29 -0700 Received: from avallurigigabyte.fi.intel.com ([10.237.68.147]) by fmsmga002.fm.intel.com with ESMTP; 29 Sep 2017 04:10:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,452,1500966000"; d="scan'208";a="1225155027" From: Amarnath Valluri To: qemu-devel@nongnu.org Date: Fri, 29 Sep 2017 14:10:21 +0300 Message-Id: <1506683421-27004-10-git-send-email-amarnath.valluri@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506683421-27004-1-git-send-email-amarnath.valluri@intel.com> References: <1506683421-27004-1-git-send-email-amarnath.valluri@intel.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 134.134.136.100 Subject: [Qemu-devel] [PATCH v10 9/9] tpm: Move tpm_cleanup() to right place X-BeenThere: qemu-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Amarnath Valluri , marcandre.lureau@gmail.com, stefanb@linux.vnet.ibm.com Errors-To: qemu-devel-bounces+importer=patchew.org@gnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" As Emulator TPM backend uses chardev, tpm cleanup should happen before char= dev similar to other vhost-users. Signed-off-by: Amarnath Valluri Reviewed-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Stefan Berger --- 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; } =20 - atexit(tpm_cleanup); return 0; } =20 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(); =20 /* vhost-user must be cleaned up before chardevs. */ + tpm_cleanup(); net_cleanup(); audio_cleanup(); monitor_cleanup(); --=20 2.7.4