From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujx5o-0005jC-Nx for qemu-devel@nongnu.org; Tue, 04 Jun 2013 15:40:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ujx5k-000773-3m for qemu-devel@nongnu.org; Tue, 04 Jun 2013 15:40:28 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:59167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujx5j-00076p-TL for qemu-devel@nongnu.org; Tue, 04 Jun 2013 15:40:24 -0400 Received: from /spool/local by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 4 Jun 2013 13:40:21 -0600 Received: from d03relay01.boulder.ibm.com (d03relay01.boulder.ibm.com [9.17.195.226]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id DA5333E40030 for ; Tue, 4 Jun 2013 13:35:12 -0600 (MDT) Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay01.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r54JZOCA081140 for ; Tue, 4 Jun 2013 13:35:24 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r54JZQRb005433 for ; Tue, 4 Jun 2013 13:35:27 -0600 Message-ID: <51AE417C.9030300@linux.vnet.ibm.com> Date: Tue, 04 Jun 2013 15:35:24 -0400 From: Corey Bryant MIME-Version: 1.0 References: <1370369921-14925-1-git-send-email-coreyb@linux.vnet.ibm.com> <51AE3EC3.70908@redhat.com> In-Reply-To: <51AE3EC3.70908@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/2] TPM NVRAM persistent storage List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, aliguori@us.ibm.com, stefanb@linux.vnet.ibm.com, qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com, jschopp@linux.vnet.ibm.com, stefanha@redhat.com On 06/04/2013 03:23 PM, Eric Blake wrote: > On 06/04/2013 12:18 PM, Corey Bryant wrote: >> This patch series provides persistent storage support that a TPM > can use to store NVRAM data. It uses QEMU's block driver to store >> data on a drive image. The libtpms TPM 1.2 backend will be the >> initial user of this functionality to store data that must persist >> through a reboot or migration. A sample command line may look like >> this: >> >> qemu-system-x86_64 ... >> -drive file=/path/to/nvram.qcow2,id=drive-nvram0-0-0 >> -tpmdev libtpms,id=tpm-tpm0 >> -device tpm-tis,tpmdev=tpm-tpm0,id=tpm0,drive=drive-nvram0-0-0 > > Is a TPM device hot-pluggable? If so, do you have a design for the QMP > counterpart in mind? > Well the TPM is not hot-pluggable. And the feedback we've been getting is to simplify this support so I'm not sure it's needed/wanted. (?) -- Regards, Corey Bryant >> >> Thanks, >> Corey >> >> Corey Bryant (2): >> nvram: Add TPM NVRAM implementation >> nvram: Add tpm-tis drive support >> >> hw/tpm/Makefile.objs | 1 + >> hw/tpm/tpm_int.h | 2 + >> hw/tpm/tpm_nvram.c | 399 ++++++++++++++++++++++++++++++++++++++++++++++++++ >> hw/tpm/tpm_nvram.h | 25 +++ >> hw/tpm/tpm_tis.c | 8 + >> 5 files changed, 435 insertions(+), 0 deletions(-) >> create mode 100644 hw/tpm/tpm_nvram.c >> create mode 100644 hw/tpm/tpm_nvram.h >> >> >> >> >