mbox

[PULL,v1,0/4] Merge tpm 2018/05/23

Message ID 20180524005741.1042749-1-stefanb@linux.vnet.ibm.com
State New
Headers show

Pull-request

git://github.com/stefanberger/qemu-tpm.git tags/pull-tpm-2018-05-23-1

Message

Stefan Berger May 24, 2018, 12:57 a.m. UTC
This series of patches adds TPM emulator state migration support and a
test case for testing (local) migration.

   Stefan

The following changes since commit 4f50c1673a89b07f376ce5c42d22d79a79cd466d:

  Merge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-request' into staging (2018-05-22 09:43:58 +0100)

are available in the Git repository at:

  git://github.com/stefanberger/qemu-tpm.git tags/pull-tpm-2018-05-23-1

for you to fetch changes up to 319bb20d1e88ea2e13baeb158a4989eceeee5e86:

  test: Add test cases that use the external swtpm with CRB interface (2018-05-23 20:35:25 -0400)

----------------------------------------------------------------
Merge tpm 2018/05/23 v1

----------------------------------------------------------------
Stefan Berger (4):
      tpm: extend TPM emulator with state migration support
      tpm: extend TPM TIS with state migration support
      docs: tpm: add VM save/restore example and troubleshooting guide
      test: Add test cases that use the external swtpm with CRB interface

 docs/specs/tpm.txt         | 106 +++++++++++++++++++++
 hw/tpm/tpm_emulator.c      | 323 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 hw/tpm/tpm_tis.c           |  52 +++++++++-
 hw/tpm/trace-events        |   9 +-
 tests/Makefile.include     |   3 +
 tests/tpm-crb-swtpm-test.c | 247 +++++++++++++++++++++++++++++++++++++++++++++++
 tests/tpm-util.c           | 186 ++++++++++++++++++++++++++++++++++++
 tests/tpm-util.h           |  36 +++++++
 8 files changed, 948 insertions(+), 14 deletions(-)
 create mode 100644 tests/tpm-crb-swtpm-test.c
 create mode 100644 tests/tpm-util.c
 create mode 100644 tests/tpm-util.h

Comments

Peter Maydell May 24, 2018, 3:04 p.m. UTC | #1
On 24 May 2018 at 01:57, Stefan Berger <stefanb@linux.vnet.ibm.com> wrote:
> This series of patches adds TPM emulator state migration support and a
> test case for testing (local) migration.
>
>    Stefan
>
> The following changes since commit 4f50c1673a89b07f376ce5c42d22d79a79cd466d:
>
>   Merge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-request' into staging (2018-05-22 09:43:58 +0100)
>
> are available in the Git repository at:
>
>   git://github.com/stefanberger/qemu-tpm.git tags/pull-tpm-2018-05-23-1
>
> for you to fetch changes up to 319bb20d1e88ea2e13baeb158a4989eceeee5e86:
>
>   test: Add test cases that use the external swtpm with CRB interface (2018-05-23 20:35:25 -0400)
>
> ----------------------------------------------------------------
> Merge tpm 2018/05/23 v1
>
> ----------------------------------------------------------------
> Stefan Berger (4):
>       tpm: extend TPM emulator with state migration support
>       tpm: extend TPM TIS with state migration support
>       docs: tpm: add VM save/restore example and troubleshooting guide
>       test: Add test cases that use the external swtpm with CRB interface
>

Hi. I'm afraid this fails to build on OpenBSD:

  CC      hw/tpm/tpm_emulator.o
/home/qemu/hw/tpm/tpm_emulator.c: In function 'tpm_emulator_set_state_blobs':
/home/qemu/hw/tpm/tpm_emulator.c:794:17: error: 'EBADMSG' undeclared
(first use in this function)
         return -EBADMSG;
                 ^

thanks
-- PMM
Stefan Berger May 24, 2018, 4:13 p.m. UTC | #2
On 05/24/2018 11:04 AM, Peter Maydell wrote:
> On 24 May 2018 at 01:57, Stefan Berger <stefanb@linux.vnet.ibm.com> wrote:
>> This series of patches adds TPM emulator state migration support and a
>> test case for testing (local) migration.
>>
>>     Stefan
>>
>> The following changes since commit 4f50c1673a89b07f376ce5c42d22d79a79cd466d:
>>
>>    Merge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-request' into staging (2018-05-22 09:43:58 +0100)
>>
>> are available in the Git repository at:
>>
>>    git://github.com/stefanberger/qemu-tpm.git tags/pull-tpm-2018-05-23-1
>>
>> for you to fetch changes up to 319bb20d1e88ea2e13baeb158a4989eceeee5e86:
>>
>>    test: Add test cases that use the external swtpm with CRB interface (2018-05-23 20:35:25 -0400)
>>
>> ----------------------------------------------------------------
>> Merge tpm 2018/05/23 v1
>>
>> ----------------------------------------------------------------
>> Stefan Berger (4):
>>        tpm: extend TPM emulator with state migration support
>>        tpm: extend TPM TIS with state migration support
>>        docs: tpm: add VM save/restore example and troubleshooting guide
>>        test: Add test cases that use the external swtpm with CRB interface
>>
> Hi. I'm afraid this fails to build on OpenBSD:
>
>    CC      hw/tpm/tpm_emulator.o
> /home/qemu/hw/tpm/tpm_emulator.c: In function 'tpm_emulator_set_state_blobs':
> /home/qemu/hw/tpm/tpm_emulator.c:794:17: error: 'EBADMSG' undeclared
> (first use in this function)
>           return -EBADMSG;

Ok. Fixing to -EIO, which is also good.

    Stefan