diff mbox series

[v2,1/4] hw/uefi: flush variable store to disk in post load

Message ID 20250319110152.1309969-2-kraxel@redhat.com (mailing list archive)
State New
Headers show
Series hw/uefi: some bugfixes | expand

Commit Message

Gerd Hoffmann March 19, 2025, 11:01 a.m. UTC
Makes live migration more robust.  Commit 4c0cfc72b31a ("pflash_cfi01:
write flash contents to bdrv on incoming migration") elaborates in
detail on the motivation.

Cc: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/uefi/var-service-core.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Philippe Mathieu-Daudé March 19, 2025, 11:57 a.m. UTC | #1
On 19/3/25 12:01, Gerd Hoffmann wrote:
> Makes live migration more robust.

Typo "Make"

>  Commit 4c0cfc72b31a ("pflash_cfi01:
> write flash contents to bdrv on incoming migration") elaborates in
> detail on the motivation.
> 
> Cc: Peter Krempa <pkrempa@redhat.com>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>   hw/uefi/var-service-core.c | 1 +
>   1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/hw/uefi/var-service-core.c b/hw/uefi/var-service-core.c
index 8ed8378ab991..4836a0cb8116 100644
--- a/hw/uefi/var-service-core.c
+++ b/hw/uefi/var-service-core.c
@@ -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;
 }