All of lore.kernel.org
 help / color / mirror / Atom feed
* QUEMU and TPM2 device emulation
@ 2020-10-14 15:27 ` Roberts, William C
  0 siblings, 0 replies; 8+ messages in thread
From: Roberts, William C @ 2020-10-14 15:27 UTC (permalink / raw)
  To: tpm2@lists.01.org, linux-integrity@vger.kernel.org

Has anyone ever setup a QUEMU instance with a virtualized TPM? I need to try and replicate an issue with the in-kernel Resource manager. My goal is to use the integrated QUEMU support
To bring up an emulated TPM device and it's associated RM node @ /dev/tpmrm0.

I am looking at:
https://android.googlesource.com/platform/external/qemu/+/emu-master-dev/docs/specs/tpm.txt

Which shows this command:

qemu-system-x86_64 -display sdl -enable-kvm \
  -m 1024 -boot d -bios bios-256k.bin -boot menu=on \
  -chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \
  -tpmdev emulator,id=tpm0,chardev=chrtpm \
  -device tpm-tis,tpmdev=tpm0 test.img

<snip>
#> dmesg | grep -i tpm
[    0.711310] tpm_tis 00:06: 1.2 TPM (device=id 0x1, rev-id 1)

I have a few questions around this that I cannot seem to dig up any documentation on:
1. How to specify TPM2.0 device? The project https://github.com/stefanberger/swtpm/wiki seems to indicate it would be supported.

2. Does anyone know the minimum QUEMU version for this support? I looked in the CHANGELOG here, https://wiki.qemu.org/ChangeLog from version 2.8 to 5.2 and never saw anything
Call out TPM 2.0 specifically.

3. Does anyone have or know of better documentation to set this up? If their isn't better documentation, should we (read I) create it? This seems like a pretty handy feature.

Thanks,
Bill

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-10-14 19:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-14 15:27 QUEMU and TPM2 device emulation Roberts, William C
2020-10-14 15:27 ` [tpm2] " Roberts, William C
2020-10-14 15:58 ` Serge E. Hallyn
2020-10-14 19:44   ` Roberts, William C
2020-10-14 19:44     ` [tpm2] " Roberts, William C
2020-10-14 16:32 ` James Bottomley
2020-10-14 19:43   ` Roberts, William C
2020-10-14 19:43     ` [tpm2] " Roberts, William C

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.