* [PATCH] hw/uefi: flush variable store to disk in post load
@ 2025-03-13 10:41 Gerd Hoffmann
2025-03-13 11:32 ` Peter Krempa
0 siblings, 1 reply; 2+ messages in thread
From: Gerd Hoffmann @ 2025-03-13 10:41 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann, Peter Krempa
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(+)
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;
}
--
2.48.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] hw/uefi: flush variable store to disk in post load
2025-03-13 10:41 [PATCH] hw/uefi: flush variable store to disk in post load Gerd Hoffmann
@ 2025-03-13 11:32 ` Peter Krempa
0 siblings, 0 replies; 2+ messages in thread
From: Peter Krempa @ 2025-03-13 11:32 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel
On Thu, Mar 13, 2025 at 11:41:19 +0100, Gerd Hoffmann wrote:
> 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>
> ---
Thanks!
> hw/uefi/var-service-core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> 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;
> }
> --
> 2.48.1
>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-13 11:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-13 10:41 [PATCH] hw/uefi: flush variable store to disk in post load Gerd Hoffmann
2025-03-13 11:32 ` Peter Krempa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).