qemu-devel
[Top][All Lists]
Advanced

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

Re: [PACTH v3 1/5] tpm_spapr: Support TPM for ppc64 using CRQ based inte


From: Stefan Berger
Subject: Re: [PACTH v3 1/5] tpm_spapr: Support TPM for ppc64 using CRQ based interface
Date: Thu, 12 Dec 2019 07:59:59 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

On 12/12/19 6:05 AM, Marc-André Lureau wrote:
Hi

On Wed, Dec 11, 2019 at 8:25 PM Stefan Berger
<address@hidden> wrote:
Implement support for TPM on ppc64 by implementing the vTPM CRQ interface
as a frontend. It can use the tpm_emulator driver backend with the external
swtpm.

The Linux vTPM driver for ppc64 works with this emulation.

This TPM emulator also handles the TPM 2 case.

Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: David Gibson <address@hidden>
---
  hw/tpm/Makefile.objs |   1 +
  hw/tpm/tpm_spapr.c   | 405 +++++++++++++++++++++++++++++++++++++++++++
  hw/tpm/trace-events  |  12 ++
  include/sysemu/tpm.h |   3 +
  qapi/tpm.json        |   6 +-
  5 files changed, 424 insertions(+), 3 deletions(-)
  create mode 100644 hw/tpm/tpm_spapr.c

diff --git a/hw/tpm/Makefile.objs b/hw/tpm/Makefile.objs
index de0b85d02a..f9f29e0082 100644
--- a/hw/tpm/Makefile.objs
+++ b/hw/tpm/Makefile.objs
@@ -4,3 +4,4 @@ common-obj-$(CONFIG_TPM_TIS) += tpm_tis.o
  common-obj-$(CONFIG_TPM_CRB) += tpm_crb.o
  common-obj-$(CONFIG_TPM_PASSTHROUGH) += tpm_passthrough.o
  common-obj-$(CONFIG_TPM_EMULATOR) += tpm_emulator.o
+obj-$(CONFIG_PSERIES) += tpm_spapr.o
looks good to me, but why not introduce CONFIG_TPM_SPAPR ?


Good point. I fixed it.






reply via email to

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