Skip to content

Commit

Permalink
hw/vfio/common: Add a trace point in vfio_reset_handler
Browse files Browse the repository at this point in the history
To ease the debug of reset sequence, let's add a trace point
in vfio_reset_handler()

Signed-off-by: Eric Auger <[email protected]>
Reviewed-by: Cédric Le Goater <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Zhenzhong Duan <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Peter Xu <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
  • Loading branch information
eauger authored and mstsirkin committed Feb 21, 2025
1 parent e39e3f8 commit d410e70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions hw/vfio/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,7 @@ void vfio_reset_handler(void *opaque)
{
VFIODevice *vbasedev;

trace_vfio_reset_handler();
QLIST_FOREACH(vbasedev, &vfio_device_list, global_next) {
if (vbasedev->dev->realized) {
vbasedev->ops->vfio_compute_needs_reset(vbasedev);
Expand Down
1 change: 1 addition & 0 deletions hw/vfio/trace-events
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ vfio_get_dev_region(const char *name, int index, uint32_t type, uint32_t subtype
vfio_legacy_dma_unmap_overflow_workaround(void) ""
vfio_get_dirty_bitmap(uint64_t iova, uint64_t size, uint64_t bitmap_size, uint64_t start, uint64_t dirty_pages) "iova=0x%"PRIx64" size= 0x%"PRIx64" bitmap_size=0x%"PRIx64" start=0x%"PRIx64" dirty_pages=%"PRIu64
vfio_iommu_map_dirty_notify(uint64_t iova_start, uint64_t iova_end) "iommu dirty @ 0x%"PRIx64" - 0x%"PRIx64
vfio_reset_handler(void) ""

# platform.c
vfio_platform_realize(char *name, char *compat) "vfio device %s, compat = %s"
Expand Down

0 comments on commit d410e70

Please sign in to comment.