summary refs log tree commit diff stats
path: root/migration/savevm.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2018-11-14 17:31:39 +0400
committerDr. David Alan Gilbert <dgilbert@redhat.com>2019-01-23 15:51:47 +0000
commitde22ded044db6b78ef8c04b8045c63683751613f (patch)
tree353897b42af57314198d06dd850d059ba1bbce90 /migration/savevm.c
parentb95d6588f2750a6b68ab02e232220bbc0d8dbcbe (diff)
downloadfocaccia-qemu-de22ded044db6b78ef8c04b8045c63683751613f.tar.gz
focaccia-qemu-de22ded044db6b78ef8c04b8045c63683751613f.zip
vmstate: constify SaveVMHandlers
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20181114133139.27346-1-marcandre.lureau@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/savevm.c')
-rw-r--r--migration/savevm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/migration/savevm.c b/migration/savevm.c
index d784e8aa40..322660438d 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -303,7 +303,7 @@ typedef struct SaveStateEntry {
     int section_id;
     /* section id read from the stream */
     int load_section_id;
-    SaveVMHandlers *ops;
+    const SaveVMHandlers *ops;
     const VMStateDescription *vmsd;
     void *opaque;
     CompatEntry *compat;
@@ -614,7 +614,7 @@ int register_savevm_live(DeviceState *dev,
                          const char *idstr,
                          int instance_id,
                          int version_id,
-                         SaveVMHandlers *ops,
+                         const SaveVMHandlers *ops,
                          void *opaque)
 {
     SaveStateEntry *se;