thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 8 months ago
Clone

Blame SOURCES/kvm-hw-arm-virt-Fix-missing-initialization-in-instance-c.patch

29b115
From e25c40735d2f022c07481b548d20476222006657 Mon Sep 17 00:00:00 2001
29b115
From: Eric Auger <eric.auger@redhat.com>
29b115
Date: Wed, 4 May 2022 11:11:54 +0200
29b115
Subject: [PATCH 2/5] hw/arm/virt: Fix missing initialization in
29b115
 instance/class_init()
29b115
29b115
RH-Author: Eric Auger <eric.auger@redhat.com>
29b115
RH-MergeRequest: 82: hw/arm/virt: Remove the dtb-kaslr-seed machine option
29b115
RH-Commit: [2/2] 22cbbfc30cf57a09b8acfb25d8a4dff2754c630c (eauger1/centos-qemu-kvm)
29b115
RH-Bugzilla: 2046029
29b115
RH-Acked-by: Gavin Shan <gshan@redhat.com>
29b115
RH-Acked-by: Andrew Jones <drjones@redhat.com>
29b115
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
29b115
29b115
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2046029
29b115
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=45133161
29b115
Upstream Status: RHEL-only
29b115
Tested: Boot RHEL guest and check migration from 8.6 to 9.1
29b115
        (with custom additions)
29b115
29b115
During the 7.0 rebase, the initialization of highmem_mmio and
29b115
highmem_redists was forgotten in rhel_virt_instance_init().
29b115
Fix it to match virt_instance_init() code.
29b115
29b115
Also mc->smp_props.clusters_supported was missing in
29b115
rhel_machine_class_init().
29b115
29b115
Signed-off-by: Eric Auger <eric.auger@redhat.com>
29b115
---
29b115
 hw/arm/virt.c | 3 +++
29b115
 1 file changed, 3 insertions(+)
29b115
29b115
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
29b115
index bde4f77994..8be12e121d 100644
29b115
--- a/hw/arm/virt.c
29b115
+++ b/hw/arm/virt.c
29b115
@@ -3286,6 +3286,7 @@ static void rhel_machine_class_init(ObjectClass *oc, void *data)
29b115
     hc->unplug_request = virt_machine_device_unplug_request_cb;
29b115
     hc->unplug = virt_machine_device_unplug_cb;
29b115
     mc->nvdimm_supported = true;
29b115
+    mc->smp_props.clusters_supported = true;
29b115
     mc->auto_enable_numa_with_memhp = true;
29b115
     mc->auto_enable_numa_with_memdev = true;
29b115
     mc->default_ram_id = "mach-virt.ram";
29b115
@@ -3366,6 +3367,8 @@ static void rhel_virt_instance_init(Object *obj)
29b115
     vms->gic_version = VIRT_GIC_VERSION_NOSEL;
29b115
 
29b115
     vms->highmem_ecam = !vmc->no_highmem_ecam;
29b115
+    vms->highmem_mmio = true;
29b115
+    vms->highmem_redists = true;
29b115
 
29b115
     if (vmc->no_its) {
29b115
         vms->its = false;
29b115
-- 
29b115
2.31.1
29b115