mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
fe3ba17b33
commit
e86f243487
3 changed files with 21 additions and 8 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue