arm/virt: Use max_cpus to calculate redist1_count arm/virt: Use separate filed to identify cpu-hotplug enable Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
30 lines
1018 B
Diff
30 lines
1018 B
Diff
From 4a3d9e9dc874f6825b8b5f18a4dece1609d48d2f Mon Sep 17 00:00:00 2001
|
|
From: Keqian Zhu <zhukeqian1@huawei.com>
|
|
Date: Mon, 15 Apr 2024 22:40:29 +0800
|
|
Subject: [PATCH] arm/virt: Use max_cpus to calculate redist1_count
|
|
|
|
When cpu hotplug is enabled, the redist1_count should
|
|
include all possible cpus.
|
|
|
|
Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
|
|
---
|
|
hw/arm/virt.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
|
|
index 44931355d6..e4473354d4 100644
|
|
--- a/hw/arm/virt.c
|
|
+++ b/hw/arm/virt.c
|
|
@@ -959,7 +959,7 @@ static void create_gic(VirtMachineState *vms, MemoryRegion *mem)
|
|
virt_redist_capacity(vms, VIRT_HIGH_GIC_REDIST2);
|
|
|
|
qlist_append_int(redist_region_count,
|
|
- MIN(smp_cpus - redist0_count, redist1_capacity));
|
|
+ MIN(max_cpus - redist0_count, redist1_capacity));
|
|
}
|
|
qdev_prop_set_array(vms->gic, "redist-region-count",
|
|
redist_region_count);
|
|
--
|
|
2.41.0
|
|
|