[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 40/41] hw/vfio/common: Add a trace point in vfio_reset_handler
From: |
Michael S. Tsirkin |
Subject: |
[PULL 40/41] hw/vfio/common: Add a trace point in vfio_reset_handler |
Date: |
Fri, 21 Feb 2025 07:24:48 -0500 |
From: Eric Auger <eric.auger@redhat.com>
To ease the debug of reset sequence, let's add a trace point
in vfio_reset_handler()
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Message-Id: <20250218182737.76722-5-eric.auger@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/vfio/common.c | 1 +
hw/vfio/trace-events | 1 +
2 files changed, 2 insertions(+)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index f7499a9b74..173fb3a997 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -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);
diff --git a/hw/vfio/trace-events b/hw/vfio/trace-events
index cab1cf1de0..c5385e1a4f 100644
--- a/hw/vfio/trace-events
+++ b/hw/vfio/trace-events
@@ -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"
--
MST
- [PULL 32/41] MAINTAINERS: add more files to `vhost`, (continued)
- [PULL 32/41] MAINTAINERS: add more files to `vhost`, Michael S. Tsirkin, 2025/02/21
- [PULL 33/41] vdpa: Fix endian bugs in shadow virtqueue, Michael S. Tsirkin, 2025/02/21
- [PULL 30/41] vhost-iova-tree: Update documentation, Michael S. Tsirkin, 2025/02/21
- [PULL 13/41] pcie_sriov: Register VFs after migration, Michael S. Tsirkin, 2025/02/21
- [PULL 34/41] hw/virtio/virtio-nsm: Respond with correct length, Michael S. Tsirkin, 2025/02/21
- [PULL 35/41] net: vhost-user: add QAPI events to report connection state, Michael S. Tsirkin, 2025/02/21
- [PULL 36/41] vhost-user-snd: correct the calculation of config_size, Michael S. Tsirkin, 2025/02/21
- [PULL 37/41] hw/virtio/virtio-iommu: Migrate to 3-phase reset, Michael S. Tsirkin, 2025/02/21
- [PULL 38/41] hw/i386/intel-iommu: Migrate to 3-phase reset, Michael S. Tsirkin, 2025/02/21
- [PULL 39/41] hw/arm/smmuv3: Move reset to exit phase, Michael S. Tsirkin, 2025/02/21
- [PULL 40/41] hw/vfio/common: Add a trace point in vfio_reset_handler,
Michael S. Tsirkin <=
- [PULL 41/41] docs/devel/reset: Document reset expectations for DMA and IOMMU, Michael S. Tsirkin, 2025/02/21
- [PULL 21/41] hw/mem/cxl_type3: Add paired msix_uninit_exclusive_bar() call, Michael S. Tsirkin, 2025/02/21
- Re: [PULL 00/41] virtio,pc,pci: features, fixes, cleanups, Stefan Hajnoczi, 2025/02/21