[PATCH v1 0/2] hw/vfio: Improve vfio_get_dirty_bitmap() tracepoint

Joao Martins posted 2 patches 11 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230523151217.46427-1-joao.m.martins@oracle.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Alex Williamson <alex.williamson@redhat.com>, "Cédric Le Goater" <clg@redhat.com>, Peter Xu <peterx@redhat.com>, David Hildenbrand <david@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>
There is a newer version of this series
accel/kvm/kvm-all.c     |  2 +-
hw/vfio/common.c        |  7 ++++---
hw/vfio/trace-events    |  2 +-
include/exec/ram_addr.h | 10 +++++++++-
4 files changed, 15 insertions(+), 6 deletions(-)
[PATCH v1 0/2] hw/vfio: Improve vfio_get_dirty_bitmap() tracepoint
Posted by Joao Martins 11 months, 2 weeks ago
Hey,

This tiny series changes the tracepoint to include the number of
dirty pages via the vfio_get_dirty_bitmap. I find it useful for
observability in general to understand the number of dirty pages in an
IOVA range. With dirty tracking supported by device or IOMMU it's specially
relevant data to include in the tracepoint.

First patch includes the dirty argument in the helper function setting
dirty bits and the second patch just expands the tracepoint to include
the dirty pages.

Thanks,
	Joao

[1] https://lore.kernel.org/qemu-devel/20220428211351.3897-1-joao.m.martins@oracle.com/#r

Joao Martins (2):
  exec/ram_addr: add dirty arg to cpu_physical_memory_set_dirty_lebitmap()
  hw/vfio: Add nr of dirty pages to vfio_get_dirty_bitmap tracepoint

 accel/kvm/kvm-all.c     |  2 +-
 hw/vfio/common.c        |  7 ++++---
 hw/vfio/trace-events    |  2 +-
 include/exec/ram_addr.h | 10 +++++++++-
 4 files changed, 15 insertions(+), 6 deletions(-)

-- 
2.31.1