[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 38ab74: tpm: extend TPM emulator with state m
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] 38ab74: tpm: extend TPM emulator with state migration supp... |
Date: |
Tue, 29 May 2018 03:15:11 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: 38ab74e7ca6961f019d771c9500df2ab340693fa
https://github.com/qemu/qemu/commit/38ab74e7ca6961f019d771c9500df2ab340693fa
Author: Stefan Berger <address@hidden>
Date: 2018-05-24 (Thu, 24 May 2018)
Changed paths:
M hw/tpm/tpm_emulator.c
M hw/tpm/trace-events
Log Message:
-----------
tpm: extend TPM emulator with state migration support
Extend the TPM emulator backend device with state migration support.
The external TPM emulator 'swtpm' provides a protocol over
its control channel to retrieve its state blobs. We implement
functions for getting and setting the different state blobs.
In case the setting of the state blobs fails, we return a
negative errno code to fail the start of the VM.
Since we have an external TPM emulator, we need to make sure
that we do not migrate the state for as long as it is busy
processing a request. We need to wait for notification that
the request has completed processing.
Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
Commit: 9ec08c485e3f97d26dd47868582c1ae1b959c182
https://github.com/qemu/qemu/commit/9ec08c485e3f97d26dd47868582c1ae1b959c182
Author: Stefan Berger <address@hidden>
Date: 2018-05-24 (Thu, 24 May 2018)
Changed paths:
M hw/tpm/tpm_tis.c
M hw/tpm/trace-events
Log Message:
-----------
tpm: extend TPM TIS with state migration support
Extend the TPM TIS interface with state migration support.
We need to synchronize with the backend thread to make sure that a command
being processed by the external TPM emulator has completed and its
response been received.
Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
Commit: 9d1f0985a77429c6d527077a44b28d43f5906112
https://github.com/qemu/qemu/commit/9d1f0985a77429c6d527077a44b28d43f5906112
Author: Stefan Berger <address@hidden>
Date: 2018-05-24 (Thu, 24 May 2018)
Changed paths:
M docs/specs/tpm.txt
Log Message:
-----------
docs: tpm: add VM save/restore example and troubleshooting guide
Extend the docs related to TPM with specs related to VM save and
restore and a troubleshooting guide for TPM migration.
Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Commit: b21373d0713d060e42dcec8262197a91b71dfd4b
https://github.com/qemu/qemu/commit/b21373d0713d060e42dcec8262197a91b71dfd4b
Author: Stefan Berger <address@hidden>
Date: 2018-05-25 (Fri, 25 May 2018)
Changed paths:
M tests/Makefile.include
A tests/tpm-crb-swtpm-test.c
A tests/tpm-util.c
A tests/tpm-util.h
Log Message:
-----------
test: Add test cases that use the external swtpm with CRB interface
Add a test program for testing the CRB with the external swtpm.
The 1st test case extends a PCR and reads back the value and compares
it against an expected return packet.
The 2nd test case repeats the 1st test case and then migrates the
external swtpm's state along with the VM state to a destination
QEMU and swtpm and checks that the PCR has the expected value now.
The test cases require 'swtpm' to be installed on the system and
in the PATH and 'swtpm' must support the --tpm2 option. If this is
not the case, the test will be skipped.
Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
Commit: b706ec24f1ea0b3f4fcc9f0a8ee7be51bd5a9ac3
https://github.com/qemu/qemu/commit/b706ec24f1ea0b3f4fcc9f0a8ee7be51bd5a9ac3
Author: Peter Maydell <address@hidden>
Date: 2018-05-29 (Tue, 29 May 2018)
Changed paths:
M docs/specs/tpm.txt
M hw/tpm/tpm_emulator.c
M hw/tpm/tpm_tis.c
M hw/tpm/trace-events
M tests/Makefile.include
A tests/tpm-crb-swtpm-test.c
A tests/tpm-util.c
A tests/tpm-util.h
Log Message:
-----------
Merge remote-tracking branch
'remotes/stefanberger/tags/pull-tpm-2018-05-23-4' into staging
Merge tpm 2018/05/23 v4
# gpg: Signature made Sat 26 May 2018 03:52:12 BST
# gpg: using RSA key 75AD65802A0B4211
# gpg: Good signature from "Stefan Berger <address@hidden>"
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg: There is no indication that the signature belongs to the owner.
# Primary key fingerprint: B818 B9CA DF90 89C2 D5CE C66B 75AD 6580 2A0B 4211
* remotes/stefanberger/tags/pull-tpm-2018-05-23-4:
test: Add test cases that use the external swtpm with CRB interface
docs: tpm: add VM save/restore example and troubleshooting guide
tpm: extend TPM TIS with state migration support
tpm: extend TPM emulator with state migration support
Signed-off-by: Peter Maydell <address@hidden>
Compare: https://github.com/qemu/qemu/compare/98c0a88ea311...b706ec24f1ea
**NOTE:** This service been marked for deprecation:
https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] 38ab74: tpm: extend TPM emulator with state migration supp...,
GitHub <=