vfio/migration: Add vfio_add_bytes_transferred()
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>
Tue, 4 Mar 2025 22:03:47 +0000 (23:03 +0100)
committerCédric Le Goater <clg@redhat.com>
Thu, 6 Mar 2025 05:47:33 +0000 (06:47 +0100)
commit47c7133629cc35b417b8f32512a4715ee53bfae3
treefc21bdf99a1883f70651dd411920b122f26b66e6
parentbd846c5d583a63eaaf836403515c4bf3748f3bb3
vfio/migration: Add vfio_add_bytes_transferred()

This way bytes_transferred can also be incremented in other translation
units than migration.c.

Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/d1fbc27ac2417b49892f354ba20f6c6b3f7209f8.1741124640.git.maciej.szmigiero@oracle.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/migration.c
include/hw/vfio/vfio-common.h