mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
hw/uefi: flush variable store to disk in post load
Make live migration more robust. Commit 4c0cfc72b3
("pflash_cfi01:
write flash contents to bdrv on incoming migration") elaborates in
detail on the motivation.
Cc: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-ID: <20250319141159.1461621-2-kraxel@redhat.com>
This commit is contained in:
parent
1dae461a91
commit
560429fd74
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ static int uefi_vars_post_load(void *opaque, int version_id)
|
|||
uefi_vars_state *uv = opaque;
|
||||
|
||||
uefi_vars_update_storage(uv);
|
||||
uefi_vars_json_save(uv);
|
||||
uv->buffer = g_malloc(uv->buf_size);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue