summary refs log tree commit diff stats
path: root/include/hw/s390x/storage-attributes.h
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2024-03-20 07:48:57 +0100
committerPeter Xu <peterx@redhat.com>2024-04-23 18:36:01 -0400
commite86f243487ed8cf71eddfe9b28eb8109d09556af (patch)
tree6da8c5069536abd3dff8a55503674510610939d4 /include/hw/s390x/storage-attributes.h
parentfe3ba17b330afd2f6004bcd36e5181f91d319106 (diff)
downloadfocaccia-qemu-e86f243487ed8cf71eddfe9b28eb8109d09556af.tar.gz
focaccia-qemu-e86f243487ed8cf71eddfe9b28eb8109d09556af.zip
s390/stattrib: Add Error** argument to set_migrationmode() handler
This will prepare ground for future changes adding an Error** argument
to the save_setup() handler. We need to make sure that on failure,
set_migrationmode() always sets a new error. See the Rules section in
qapi/error.h.

Cc: Halil Pasic <pasic@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: Thomas Huth <thuth@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/r/20240320064911.545001-2-clg@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'include/hw/s390x/storage-attributes.h')
-rw-r--r--include/hw/s390x/storage-attributes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/s390x/storage-attributes.h b/include/hw/s390x/storage-attributes.h
index 5239eb538c..8921a04d51 100644
--- a/include/hw/s390x/storage-attributes.h
+++ b/include/hw/s390x/storage-attributes.h
@@ -39,7 +39,7 @@ struct S390StAttribClass {
     int (*set_stattr)(S390StAttribState *sa, uint64_t start_gfn,
                       uint32_t count, uint8_t *values);
     void (*synchronize)(S390StAttribState *sa);
-    int (*set_migrationmode)(S390StAttribState *sa, bool value);
+    int (*set_migrationmode)(S390StAttribState *sa, bool value, Error **errp);
     int (*get_active)(S390StAttribState *sa);
     long long (*get_dirtycount)(S390StAttribState *sa);
 };