qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] TPM-CRB: Remove spurious error report when used with VFIO
@ 2022-02-08 13:38 Eric Auger
  2022-02-08 13:38 ` [PATCH v4 1/2] tpm: CRB: Use ram_device for "tpm-crb-cmd" region Eric Auger
  2022-02-08 13:38 ` [PATCH v4 2/2] hw/vfio/common: Silence ram device offset alignment error traces Eric Auger
  0 siblings, 2 replies; 17+ messages in thread
From: Eric Auger @ 2022-02-08 13:38 UTC (permalink / raw)
  To: eric.auger.pro, eric.auger, stefanb, qemu-devel, alex.williamson
  Cc: quintela, cohuck, f4bug, dgilbert, imammedo, david

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.

Best Regards

Eric

This series can be found at:
https://github.com/eauger/qemu/tree/tpm-crb-ram-device-v4

History:
v3 -> v4:
- Use PRIxPTR
- call vmstate_unregister_ram

v2 -> v3: respin by Philippe to remove meson changes

v1 -> v2:
- added tpm_crb_unrealize (dared to keep Stefan's T-b though)


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     | 23 +++++++++++++++++++++--
 hw/vfio/common.c     | 15 ++++++++++++++-
 hw/vfio/trace-events |  1 +
 3 files changed, 36 insertions(+), 3 deletions(-)

-- 
2.26.3



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

end of thread, other threads:[~2022-03-04  9:37 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-08 13:38 [PATCH v4 0/2] TPM-CRB: Remove spurious error report when used with VFIO Eric Auger
2022-02-08 13:38 ` [PATCH v4 1/2] tpm: CRB: Use ram_device for "tpm-crb-cmd" region Eric Auger
2022-02-08 15:17   ` Peter Maydell
2022-02-08 15:56     ` Eric Auger
2022-02-08 16:01       ` Peter Maydell
2022-02-08 16:36         ` Alex Williamson
2022-02-08 17:14           ` Peter Maydell
2022-02-09  9:54             ` Eric Auger
2022-02-08 16:42         ` Eric Auger
2022-02-08 17:03   ` Dr. David Alan Gilbert
2022-02-09  9:39     ` Eric Auger
2022-02-08 17:16   ` Stefan Berger
2022-02-08 17:58     ` Eric Auger
2022-03-03 14:37       ` Eric Auger
2022-03-03 16:16         ` Marc-André Lureau
2022-03-04  9:32           ` Eric Auger
2022-02-08 13:38 ` [PATCH v4 2/2] hw/vfio/common: Silence ram device offset alignment error traces Eric Auger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).