[PR #231] [CLOSED] Add qemu support for I2C based TPM device #282

Open
opened 2026-01-31 21:30:36 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/qemu/qemu/pull/231
Author: @ninadpalsule
Created: 3/20/2023
Status: Closed

Base: masterHead: tpm_i2c


📝 Commits (1)

  • 4ab639a Add qemu support for I2C based TPM device

📊 Changes

8 files changed (+361 additions, -3 deletions)

View changed files

📝 docs/specs/tpm.rst (+2 -1)
📝 hw/core/machine.c (+3 -0)
📝 hw/tpm/meson.build (+4 -2)
📝 hw/tpm/tpm_tis.h (+2 -0)
📝 hw/tpm/tpm_tis_common.c (+24 -0)
hw/tpm/tpm_tis_i2c.c (+320 -0)
📝 include/hw/acpi/tpm.h (+3 -0)
📝 include/sysemu/tpm.h (+3 -0)

📄 Description

This is a prototype 1.

TODO: Cleanup

Run swtpm emulator
$ swtpm socket --tpmstate dir=/tmp/mytpm1 --ctrl type=unixio,path=/tmp/mytpm1/swtpm-sock --tpm2 --log level=20

Run qemu by adding following lines for rainier machine.
$ -chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis-i2c,tpmdev=tpm0,bus=aspeed.i2c.bus.12,address=0x2e


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/qemu/qemu/pull/231 **Author:** [@ninadpalsule](https://github.com/ninadpalsule) **Created:** 3/20/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `tpm_i2c` --- ### 📝 Commits (1) - [`4ab639a`](https://github.com/qemu/qemu/commit/4ab639a1a4963b3d16b24603ea68893c59bb2b73) Add qemu support for I2C based TPM device ### 📊 Changes **8 files changed** (+361 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/specs/tpm.rst` (+2 -1) 📝 `hw/core/machine.c` (+3 -0) 📝 `hw/tpm/meson.build` (+4 -2) 📝 `hw/tpm/tpm_tis.h` (+2 -0) 📝 `hw/tpm/tpm_tis_common.c` (+24 -0) ➕ `hw/tpm/tpm_tis_i2c.c` (+320 -0) 📝 `include/hw/acpi/tpm.h` (+3 -0) 📝 `include/sysemu/tpm.h` (+3 -0) </details> ### 📄 Description This is a prototype 1. TODO: Cleanup Run swtpm emulator $ swtpm socket --tpmstate dir=/tmp/mytpm1 --ctrl type=unixio,path=/tmp/mytpm1/swtpm-sock --tpm2 --log level=20 Run qemu by adding following lines for rainier machine. $ -chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis-i2c,tpmdev=tpm0,bus=aspeed.i2c.bus.12,address=0x2e --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 21:30:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/qemu#282