Skip to content

tpm: CRB: Use ram_device for "tpm-crb-cmd" region

Philippe Mathieu-Daudé via qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 4 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tpm: CRB: Use ram_device for "tpm-crb-cmd" regionhw/tpm/tpm_crb.c+20 -21 reply
2/2hw/vfio/common: Silence ram device offset alignment error traceshw/vfio/common.c hw/vfio/trace-events+15 -10 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchStefan BergerAlex Williamson
1/2T-b A-b
2/2T-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] tpm: CRB: Use ram_device for "tpm-crb-cmd" region

This is a respin of Eric's work, but not making tpm_crb.c target specific.

Based-on: <[email protected]> "exec/cpu: Make host pages variables / macros 'target agnostic'"
https://lore.kernel.org/qemu-devel/[email protected]/

--

Eric's v2 cover:

This series aims at removing a spurious error message we get when launching a guest with a TPM-CRB device and VFIO-PCI devices.

The CRB command buffer currently is a RAM MemoryRegion and given its base address alignment, it causes an error report on vfio_listener_region_add(). This series proposes to use a ram-device region instead which helps in better assessing the dma map error failure on VFIO side.

Eric Auger (2):
tpm: CRB: Use ram_device for "tpm-crb-cmd" region hw/vfio/common: Silence ram device offset alignment error traces

 hw/tpm/tpm_crb.c     | 22 ++++++++++++++++++++--
 hw/vfio/common.c     | 15 ++++++++++++++-
 hw/vfio/trace-events |  1 +
 3 files changed, 35 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1