Blame SOURCES/0023-redhat-virt-rhel8.5.0-Update-machine-type-compatibil.patch

b697b4
From 3b82be3dd3d5254baedf82ba2a6cf0412e84a991 Mon Sep 17 00:00:00 2001
b697b4
From: Eric Auger <eric.auger@redhat.com>
b697b4
Date: Tue, 16 Nov 2021 17:03:07 +0100
b697b4
Subject: redhat: virt-rhel8.5.0: Update machine type compatibility for QEMU
b697b4
 6.2.0 update
b697b4
b697b4
RH-Author: Eric Auger <eric.auger@redhat.com>
b697b4
RH-MergeRequest: 75: redhat: virt-rhel8.5.0: Update machine type compatibility for QEMU 6.2.0 update
b697b4
RH-Commit: [21/21] f027d13654944e3d34e3356affe7af952eec2bed
b697b4
RH-Bugzilla: 2022607
b697b4
RH-Acked-by: Gavin Shan <gshan@redhat.com>
b697b4
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
b697b4
RH-Acked-by: Andrew Jones <drjones@redhat.com>
b697b4
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
b697b4
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
b697b4
b697b4
To keep compatibility with 8.5-AV machine type we need to
b697b4
turn few new options on by default:
b697b4
smp_props.prefer_sockets, no_cpu_topology, no_tcg_its
b697b4
b697b4
TESTED: migrate from rhel-av-8.5.0 to rhel-8.6.0 and vice-versa
b697b4
with upstream fix: 33a0c404fb  hw/intc/arm_gicv3_its: Revert version
b697b4
increments in vmstate_its
b697b4
b697b4
Signed-off-by: Eric Auger <eric.auger@redhat.com>
b697b4
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
b697b4
---
b697b4
 hw/arm/virt.c | 5 +++++
b697b4
 1 file changed, 5 insertions(+)
b697b4
b697b4
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
b697b4
index 7d51824263..6ba9a2c2e1 100644
b697b4
--- a/hw/arm/virt.c
b697b4
+++ b/hw/arm/virt.c
b697b4
@@ -3230,7 +3230,12 @@ type_init(rhel_machine_init);
b697b4
 
b697b4
 static void rhel850_virt_options(MachineClass *mc)
b697b4
 {
b697b4
+    VirtMachineClass *vmc = VIRT_MACHINE_CLASS(OBJECT_CLASS(mc));
b697b4
+
b697b4
     compat_props_add(mc->compat_props, arm_rhel_compat, arm_rhel_compat_len);
b697b4
     compat_props_add(mc->compat_props, hw_compat_rhel_8_5, hw_compat_rhel_8_5_len);
b697b4
+    mc->smp_props.prefer_sockets = true;
b697b4
+    vmc->no_cpu_topology = true;
b697b4
+    vmc->no_tcg_its = true;
b697b4
 }
b697b4
 DEFINE_RHEL_MACHINE_AS_LATEST(8, 5, 0)
b697b4
-- 
b697b4
2.27.0
b697b4