mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
vfio: Add Error** argument to .set_dirty_page_tracking() handler
We will use the Error object to improve error reporting in the .log_global*() handlers of VFIO. Add documentation while at it. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Avihai Horon <avihaih@nvidia.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
85ef20f167
commit
836bb30868
4 changed files with 23 additions and 9 deletions
|
@ -1076,7 +1076,7 @@ static bool vfio_listener_log_global_start(MemoryListener *listener,
|
|||
if (vfio_devices_all_device_dirty_tracking(bcontainer)) {
|
||||
ret = vfio_devices_dma_logging_start(bcontainer);
|
||||
} else {
|
||||
ret = vfio_container_set_dirty_page_tracking(bcontainer, true);
|
||||
ret = vfio_container_set_dirty_page_tracking(bcontainer, true, NULL);
|
||||
}
|
||||
|
||||
if (ret) {
|
||||
|
@ -1096,7 +1096,7 @@ static void vfio_listener_log_global_stop(MemoryListener *listener)
|
|||
if (vfio_devices_all_device_dirty_tracking(bcontainer)) {
|
||||
vfio_devices_dma_logging_stop(bcontainer);
|
||||
} else {
|
||||
ret = vfio_container_set_dirty_page_tracking(bcontainer, false);
|
||||
ret = vfio_container_set_dirty_page_tracking(bcontainer, false, NULL);
|
||||
}
|
||||
|
||||
if (ret) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue