]> git.ipfire.org Git - thirdparty/qemu.git/commit
s390/stattrib: Add Error** argument to set_migrationmode() handler
authorCédric Le Goater <clg@redhat.com>
Wed, 20 Mar 2024 06:48:57 +0000 (07:48 +0100)
committerPeter Xu <peterx@redhat.com>
Tue, 23 Apr 2024 22:36:01 +0000 (18:36 -0400)
commite86f243487ed8cf71eddfe9b28eb8109d09556af
tree6da8c5069536abd3dff8a55503674510610939d4
parentfe3ba17b330afd2f6004bcd36e5181f91d319106
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>
hw/s390x/s390-stattrib-kvm.c
hw/s390x/s390-stattrib.c
include/hw/s390x/storage-attributes.h