]> git.proxmox.com Git - pve-qemu.git/blame - debian/patches/pve/0024-PVE-Compat-4.0-used-balloon-qemu-4-0-config-size-fal.patch
update submodule and patches to 7.2.0
[pve-qemu.git] / debian / patches / pve / 0024-PVE-Compat-4.0-used-balloon-qemu-4-0-config-size-fal.patch
CommitLineData
99b86f4f
TL
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Thomas Lamprecht <t.lamprecht@proxmox.com>
83faa3fe
TL
3Date: Mon, 6 Apr 2020 12:16:54 +0200
4Subject: [PATCH] PVE: [Compat]: 4.0 used balloon qemu-4-0-config-size false
5 here
99b86f4f
TL
6
7The underlying issue why this change from upstream to us arised in
8the first place is that QEMU 4.0 was already released at the point we
9run into this migration issue, so we did the then obvious fallback to
10false for virtio-balloon-device qemu-4-0-config-size.
11
12QEMU made that switch back in 4.1, where it now uses a backward
13compatible mechanism to detect if the bigger CFG sizes should be
14used, i.e., checking the VIRTIO_BALLOON_F_PAGE_POISON or
15VIRTIO_BALLOON_F_FREE_PAGE_HINT balloon feature flags.
16As for them, upstream released version 4.0 had this to true they keep
17it to true in their compatibility record for the 4.0 machine, to
18allow live migrations from 4.0 to 4.1.
19As for us, downstream released version 4.0 (first public release of
20this QEMU) had this to false, we change it back to false again, for
21the same reason.
22
23Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
24---
25 hw/core/machine.c | 3 ++-
26 1 file changed, 2 insertions(+), 1 deletion(-)
27
28diff --git a/hw/core/machine.c b/hw/core/machine.c
d03e1b3c 29index 8d34caa31d..2df9037c4e 100644
99b86f4f
TL
30--- a/hw/core/machine.c
31+++ b/hw/core/machine.c
d03e1b3c 32@@ -132,7 +132,8 @@ GlobalProperty hw_compat_4_0[] = {
99b86f4f 33 { "virtio-vga", "edid", "false" },
83faa3fe 34 { "virtio-gpu-device", "edid", "false" },
99b86f4f
TL
35 { "virtio-device", "use-started", "false" },
36- { "virtio-balloon-device", "qemu-4-0-config-size", "true" },
37+ // PVE differed from upstream for 4.0 balloon cfg size
38+ { "virtio-balloon-device", "qemu-4-0-config-size", "false" },
39 { "pl031", "migrate-tick-offset", "false" },
40 };
41 const size_t hw_compat_4_0_len = G_N_ELEMENTS(hw_compat_4_0);