mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
vfio/migration: Add load_device_config_state_start trace event
And rename existing load_device_config_state trace event to load_device_config_state_end for consistency since it is triggered at the end of loading of the VFIO device config state. This way both the start and end points of particular device config loading operation (a long, BQL-serialized operation) are known. Reviewed-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> Link: https://lore.kernel.org/qemu-devel/1b6c5a2097e64c272eb7e53f9e4cca4b79581b38.1741124640.git.maciej.szmigiero@oracle.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
8305921a91
commit
5963c219a0
2 changed files with 5 additions and 2 deletions
|
@ -285,6 +285,8 @@ static int vfio_load_device_config_state(QEMUFile *f, void *opaque)
|
|||
VFIODevice *vbasedev = opaque;
|
||||
uint64_t data;
|
||||
|
||||
trace_vfio_load_device_config_state_start(vbasedev->name);
|
||||
|
||||
if (vbasedev->ops && vbasedev->ops->vfio_load_config) {
|
||||
int ret;
|
||||
|
||||
|
@ -303,7 +305,7 @@ static int vfio_load_device_config_state(QEMUFile *f, void *opaque)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
trace_vfio_load_device_config_state(vbasedev->name);
|
||||
trace_vfio_load_device_config_state_end(vbasedev->name);
|
||||
return qemu_file_get_error(f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue