Skip to content

Commit 560429f

Browse files
committed
hw/uefi: flush variable store to disk in post load
Make live migration more robust. Commit 4c0cfc7 ("pflash_cfi01: write flash contents to bdrv on incoming migration") elaborates in detail on the motivation. Cc: Peter Krempa <[email protected]> Reviewed-by: Peter Krempa <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]> Message-ID: <[email protected]>
1 parent 1dae461 commit 560429f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hw/uefi/var-service-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ static int uefi_vars_post_load(void *opaque, int version_id)
2929
uefi_vars_state *uv = opaque;
3030

3131
uefi_vars_update_storage(uv);
32+
uefi_vars_json_save(uv);
3233
uv->buffer = g_malloc(uv->buf_size);
3334
return 0;
3435
}

0 commit comments

Comments
 (0)