summaryrefslogtreecommitdiffstats
path: root/hw/vfio/trace-events
diff options
context:
space:
mode:
authorKirti Wankhede2020-10-26 10:36:19 +0100
committerAlex Williamson2020-11-01 20:30:50 +0100
commit3336d21710130a3d64c901aeae2dc66c364f93ad (patch)
tree303372259e972f8ccb81c3728b4a7a1b9f3c83dd /hw/vfio/trace-events
parentvfio: Add save state functions to SaveVMHandlers (diff)
downloadqemu-3336d21710130a3d64c901aeae2dc66c364f93ad.tar.gz
qemu-3336d21710130a3d64c901aeae2dc66c364f93ad.tar.xz
qemu-3336d21710130a3d64c901aeae2dc66c364f93ad.zip
vfio: Add load state functions to SaveVMHandlers
Sequence during _RESUMING device state: While data for this device is available, repeat below steps: a. read data_offset from where user application should write data. b. write data of data_size to migration region from data_offset. c. write data_size which indicates vendor driver that data is written in staging buffer. For user, data is opaque. User should write data in the same order as received. Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com> Reviewed-by: Neo Jia <cjia@nvidia.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Yan Zhao <yan.y.zhao@intel.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/vfio/trace-events')
-rw-r--r--hw/vfio/trace-events4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/vfio/trace-events b/hw/vfio/trace-events
index 9f5712dab1..a75b520881 100644
--- a/hw/vfio/trace-events
+++ b/hw/vfio/trace-events
@@ -159,3 +159,7 @@ vfio_save_device_config_state(const char *name) " (%s)"
vfio_save_pending(const char *name, uint64_t precopy, uint64_t postcopy, uint64_t compatible) " (%s) precopy 0x%"PRIx64" postcopy 0x%"PRIx64" compatible 0x%"PRIx64
vfio_save_iterate(const char *name, int data_size) " (%s) data_size %d"
vfio_save_complete_precopy(const char *name) " (%s)"
+vfio_load_device_config_state(const char *name) " (%s)"
+vfio_load_state(const char *name, uint64_t data) " (%s) data 0x%"PRIx64
+vfio_load_state_device_data(const char *name, uint64_t data_offset, uint64_t data_size) " (%s) Offset 0x%"PRIx64" size 0x%"PRIx64
+vfio_load_cleanup(const char *name) " (%s)"