mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-01 14:31:52 -06:00
migration: Add Error** argument to .load_setup() handler
This will be useful to report errors at a higher level, mostly in VFIO today. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/r/20240320064911.545001-9-clg@redhat.com [peterx: drop comment for ERRP_GUARD, per Markus] Signed-off-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
parent
01c3ac681b
commit
e4fa064d56
4 changed files with 18 additions and 8 deletions
|
@ -3704,8 +3704,9 @@ void colo_release_ram_cache(void)
|
|||
*
|
||||
* @f: QEMUFile where to receive the data
|
||||
* @opaque: RAMState pointer
|
||||
* @errp: pointer to Error*, to store an error if it happens.
|
||||
*/
|
||||
static int ram_load_setup(QEMUFile *f, void *opaque)
|
||||
static int ram_load_setup(QEMUFile *f, void *opaque, Error **errp)
|
||||
{
|
||||
xbzrle_load_setup();
|
||||
ramblock_recv_map_init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue