[Top][All Lists]

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

Re: [RFC 0/1] SPI support in QEMU TPM

From: Cédric Le Goater
Subject: Re: [RFC 0/1] SPI support in QEMU TPM
Date: Wed, 3 Aug 2022 10:32:51 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

[ Adding Stefan, TPM maintainer ]

On 8/3/22 04:32, Iris Chen wrote:
From: Iris Chen <irischenlj@fb.com>

Hey everyone,

Thanks for all your comments on the SPI GPIO model. I am working through them.

As for adding support for SPI-based TPMs in QEMU, this RFC patch adds SPI
support in the QEMU TPM implementation via tpm_tis_spi.c.

The QEMU tree already has support for two connection methods to the TPM:
mmio (isa for x86, sysbus for arm) and “spapr”. This patch adds a new SPI
bus implementation for the TPM. Specifically, this SPI bus implementation
connects to the Yosemite-v3.5 model using the SPI-GPIO model sent earlier
last week. I have already tested these implementations locally together
and can verify that the Linux kernel can successfully probe the TPM device
on Yosemite-v3.5 and we can run the TPM command line tools to interact with it.

Please let me know what you think about this!


Iris Chen (1):
   hw: tpmtisspi: add SPI support to QEMU TPM implementation

  configs/devices/arm-softmmu/default.mak |   1 +
  hw/arm/Kconfig                          |   5 +
  hw/tpm/Kconfig                          |   5 +
  hw/tpm/meson.build                      |   1 +
  hw/tpm/tpm_tis_spi.c                    | 311 ++++++++++++++++++++++++
  include/sysemu/tpm.h                    |   3 +
  6 files changed, 326 insertions(+)
  create mode 100644 hw/tpm/tpm_tis_spi.c


reply via email to

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