qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 0b4c7c: tpm_emulator: Add a caching layer for


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 0b4c7c: tpm_emulator: Add a caching layer for the TPM Esta...
Date: Mon, 08 Jan 2018 02:57:12 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 0b4c7c65f882fac328f2c97398f06f16fe6d3f12
      
https://github.com/qemu/qemu/commit/0b4c7c65f882fac328f2c97398f06f16fe6d3f12
  Author: Stefan Berger <address@hidden>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M hw/tpm/tpm_emulator.c

  Log Message:
  -----------
  tpm_emulator: Add a caching layer for the TPM Established flag

Add a caching layer for the TPM established flag so that we don't
need to go to the emulator every time the flag is read by accessing
the REG_ACCESS register.

Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>


  Commit: 8a2306c7ed30bfc88cf7e3aced8c2867525f8d4b
      
https://github.com/qemu/qemu/commit/8a2306c7ed30bfc88cf7e3aced8c2867525f8d4b
  Author: Stefan Berger <address@hidden>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M hw/tpm/tpm_tis.c

  Log Message:
  -----------
  tpm_tis: convert uint32_t to size_t

Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>


  Commit: 1af3d63ea3b0d18a6f17e4587f48529cd4fb26f0
      
https://github.com/qemu/qemu/commit/1af3d63ea3b0d18a6f17e4587f48529cd4fb26f0
  Author: Stefan Berger <address@hidden>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M hw/tpm/tpm_tis.c

  Log Message:
  -----------
  tpm_tis: limit size of buffer from backend

This is a preparatory patch for the subsequent ones where we
get rid of the flexibility of supporting any kind of buffer size
that the backend may support. We keep the size at 4096, which is
also the size the external emulator supports. So, limit the size
of the buffer we can support and pass it back to the backend.

Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>


  Commit: e6b703f6c7a88f84c62d9b8335ee8f451caa9bda
      
https://github.com/qemu/qemu/commit/e6b703f6c7a88f84c62d9b8335ee8f451caa9bda
  Author: Stefan Berger <address@hidden>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M hw/tpm/tpm_tis.c

  Log Message:
  -----------
  tpm_tis: remove TPMSizeBuffer usage

Remove usage of TPMSizeBuffer. The size of the buffers is limited now
by s->be_buffer_size, which is the size of the buffer the TIS has
negotiated with the backend.

Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>


  Commit: 0804084230eaff79b4e00cf1c1bcfeb30e7bb9b4
      
https://github.com/qemu/qemu/commit/0804084230eaff79b4e00cf1c1bcfeb30e7bb9b4
  Author: Stefan Berger <address@hidden>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M hw/tpm/tpm_tis.c

  Log Message:
  -----------
  tpm_tis: move buffers from localities into common location

One read buffer and one write buffer is sufficient for all localities.
The localities cannot all be active at the same time, and only the active
locality can use the r/w buffers. Inactive localities will require the
COMMAND_READY flag to be set on the STS register to move to the READY
state, which then enables access to using the buffer for writing of a
command, while all other localities are inactive.

Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>


  Commit: c5496b9797d8dfde3ef491da67b7a1d191820ef2
      
https://github.com/qemu/qemu/commit/c5496b9797d8dfde3ef491da67b7a1d191820ef2
  Author: Stefan Berger <address@hidden>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M hw/tpm/tpm_tis.c

  Log Message:
  -----------
  tpm_tis: merge read and write buffer into single buffer

Since we can only be in read or write mode, we can merge the buffers
into a single buffer.

Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>


  Commit: e6b30c71f4b56784638eed475e7bdd6dc8c7764e
      
https://github.com/qemu/qemu/commit/e6b30c71f4b56784638eed475e7bdd6dc8c7764e
  Author: Stefan Berger <address@hidden>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M hw/tpm/tpm_tis.c

  Log Message:
  -----------
  tpm_tis: move r/w_offsets to TPMState

Now that we have a single buffer, we also only need a single set of
read/write offsets into that buffer. This works since only one
locality can be active.

Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>


  Commit: f999d81bc7d9ff3dd2b699d0091824e6b9071d83
      
https://github.com/qemu/qemu/commit/f999d81bc7d9ff3dd2b699d0091824e6b9071d83
  Author: Stefan Berger <address@hidden>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M hw/tpm/tpm_tis.c

  Log Message:
  -----------
  tpm_tis: merge r/w_offset into rw_offset

We can now merge the r_offset and w_offset into a single rw_offset.
This is possible since when the offset is used for writing in
RECEPTION state then reads are ignore. Conversely, when the offset
is used for reading when in COMPLETION state, then writes are
ignored.

Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>


  Commit: b86da7ddeda904b5fb1da03781328e7039536025
      
https://github.com/qemu/qemu/commit/b86da7ddeda904b5fb1da03781328e7039536025
  Author: Stefan Berger <address@hidden>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M hw/tpm/tpm_tis.c
    M hw/tpm/tpm_util.c
    M hw/tpm/tpm_util.h

  Log Message:
  -----------
  tpm: Implement tpm_sized_buffer_reset

Move the definition of TPMSizedBuffer out of tpm_tis.c into tpm_util.h
and implement tpm_sized_buffer_reset() for the following patches to use.

Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>


  Commit: 4a42fa0ee20b51b326f6494cb50218b52471a261
      
https://github.com/qemu/qemu/commit/4a42fa0ee20b51b326f6494cb50218b52471a261
  Author: Stefan Berger <Stefan Berger address@hidden>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M hw/i386/acpi-build.c
    M include/hw/acpi/acpi-defs.h

  Log Message:
  -----------
  acpi: Update TPM2 ACPI table to more recent specs

More recent specs of the TPM2 ACPI table add fields for the log area
start address and the log area minimum size, which we already use
for the TCPA table.

Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>


  Commit: b1e513ae332082a234a3d724be3ba49353a710c6
      
https://github.com/qemu/qemu/commit/b1e513ae332082a234a3d724be3ba49353a710c6
  Author: Peter Maydell <address@hidden>
  Date:   2018-01-08 (Mon, 08 Jan 2018)

  Changed paths:
    M hw/i386/acpi-build.c
    M hw/tpm/tpm_emulator.c
    M hw/tpm/tpm_tis.c
    M hw/tpm/tpm_util.c
    M hw/tpm/tpm_util.h
    M include/hw/acpi/acpi-defs.h

  Log Message:
  -----------
  Merge remote-tracking branch 
'remotes/stefanberger/tags/pull-tpm-2017-12-22-1' into staging

Merge tpm 2017/12/22 v1

# gpg: Signature made Fri 22 Dec 2017 20:03:37 GMT
# gpg:                using RSA key 0x75AD65802A0B4211
# 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-2017-12-22-1:
  acpi: Update TPM2 ACPI table to more recent specs
  tpm: Implement tpm_sized_buffer_reset
  tpm_tis: merge r/w_offset into rw_offset
  tpm_tis: move r/w_offsets to TPMState
  tpm_tis: merge read and write buffer into single buffer
  tpm_tis: move buffers from localities into common location
  tpm_tis: remove TPMSizeBuffer usage
  tpm_tis: limit size of buffer from backend
  tpm_tis: convert uint32_t to size_t
  tpm_emulator: Add a caching layer for the TPM Established flag

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/8671016261cd...b1e513ae3320

reply via email to

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