vfio: Make vfio_devices_dma_logging_start() return bool
authorCédric Le Goater <clg@redhat.com>
Mon, 17 Jun 2024 06:33:53 +0000 (08:33 +0200)
committerCédric Le Goater <clg@redhat.com>
Mon, 24 Jun 2024 21:15:31 +0000 (23:15 +0200)
commit332b9b0da409d727ac4765fa613158189562dec4
treeaafb3c8932c5318fe37321d87b26323fe79d99b4
parent71386c6efd7d57cc549b1c3caff889e7506c54a9
vfio: Make vfio_devices_dma_logging_start() return bool

Since vfio_devices_dma_logging_start() takes an 'Error **' argument,
best practices suggest to return a bool. See the api/error.h Rules
section. It will simplify potential changes coming after.

vfio_container_set_dirty_page_tracking() could be modified in the same
way but the errno value can be saved in the migration stream when
called from vfio_listener_log_global_stop().

Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/common.c