yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

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

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