thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

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

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