util/vfio-helpers: Trace PCI I/O config accesses
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 3 Nov 2020 02:07:28 +0000 (03:07 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 3 Nov 2020 19:06:22 +0000 (19:06 +0000)
commit3d87c2d9435a4c71d588a770a8a34382c1afa9c1
treed128561d80d1cb41e99e79aca60415c4476b7315
parenta4bc212add9bd9d7a7baaa095f875d9212eb1fc9
util/vfio-helpers: Trace PCI I/O config accesses

We sometime get kernel panic with some devices on Aarch64
hosts. Alex Williamson suggests it might be broken PCIe
root complex. Add trace event to record the latest I/O
access before crashing. In case, assert our accesses are
aligned.

Reviewed-by: Fam Zheng <fam@euphon.net>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201103020733.2303148-3-philmd@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
util/trace-events
util/vfio-helpers.c