]> git.proxmox.com Git - pve-qemu.git/blob - debian/patches/pve/0065-savevm-async-also-initialize-compression-counters.patch
update submodule and patches to QEMU 8.0.0
[pve-qemu.git] / debian / patches / pve / 0065-savevm-async-also-initialize-compression-counters.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Fiona Ebner <f.ebner@proxmox.com>
3 Date: Thu, 27 Apr 2023 10:28:08 +0200
4 Subject: [PATCH] savevm-async: also initialize compression counters
5
6 Like is done in the migration code. While the compression migration
7 capability is not used by Proxmox VE currently, it's still worth to
8 be prepared for the future.
9
10 Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 ---
12 migration/savevm-async.c | 1 +
13 1 file changed, 1 insertion(+)
14
15 diff --git a/migration/savevm-async.c b/migration/savevm-async.c
16 index de91506821..effe6d1e0d 100644
17 --- a/migration/savevm-async.c
18 +++ b/migration/savevm-async.c
19 @@ -394,6 +394,7 @@ void qmp_savevm_start(const char *statefile, Error **errp)
20 */
21 migrate_init(ms);
22 memset(&ram_counters, 0, sizeof(ram_counters));
23 + memset(&compression_counters, 0, sizeof(compression_counters));
24 ms->to_dst_file = snap_state.file;
25
26 error_setg(&snap_state.blocker, "block device is in use by savevm");