mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
notify: pass error to notifier with return
Pass an error object as the third parameter to "notifier with return" notifiers, so clients no longer need to bundle an error object in the opaque data. The new parameter is used in a later patch. Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Link: https://lore.kernel.org/r/1708622920-68779-2-git-send-email-steven.sistare@oracle.com Signed-off-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
@@ -80,7 +80,7 @@ int postcopy_notify(enum PostcopyNotifyReason reason, Error **errp)
|
||||
pnd.errp = errp;
|
||||
|
||||
return notifier_with_return_list_notify(&postcopy_notifier_list,
|
||||
&pnd);
|
||||
&pnd, errp);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -428,7 +428,7 @@ int precopy_notify(PrecopyNotifyReason reason, Error **errp)
|
||||
pnd.reason = reason;
|
||||
pnd.errp = errp;
|
||||
|
||||
return notifier_with_return_list_notify(&precopy_notifier_list, &pnd);
|
||||
return notifier_with_return_list_notify(&precopy_notifier_list, &pnd, errp);
|
||||
}
|
||||
|
||||
uint64_t ram_bytes_remaining(void)
|
||||
|
||||
Reference in New Issue
Block a user