1 Star 0 Fork 120

sdf_2022/qemu

forked from src-openEuler/qemu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
arm-virt-Fix-vcpu-hotplug-idx_from_topo_ids.patch 982 Bytes
一键复制 编辑 原始数据 按行查看 历史
yezengruan 提交于 2022-11-22 17:45 . Qemu update to version 6.2.0-59
From add7ed9bb57490e29371a542d47891b7c9210c43 Mon Sep 17 00:00:00 2001
From: Keqian Zhu <zhukeqian1@huawei.com>
Date: Sun, 6 Nov 2022 06:36:15 +0800
Subject: [PATCH 1/3] arm/virt: Fix vcpu hotplug idx_from_topo_ids
Add missing "nr_threads" when compute cpu index.
Fixes: 5454c0090823 ("arm/virt: Add CPU topology support")
Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
---
include/hw/arm/topology.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/hw/arm/topology.h b/include/hw/arm/topology.h
index d0dad1a9a3..33e4a0d552 100644
--- a/include/hw/arm/topology.h
+++ b/include/hw/arm/topology.h
@@ -39,7 +39,7 @@ static inline unsigned idx_from_topo_ids(unsigned nr_clusters,
assert(topo != NULL);
return topo->pkg_id * nr_clusters * nr_cores * nr_threads +
- topo->cluster_id * nr_cores +
+ topo->cluster_id * nr_cores * nr_threads +
topo->core_id * nr_threads +
topo->smt_id;
}
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/songdf_2022/qemu.git
git@gitee.com:songdf_2022/qemu.git
songdf_2022
qemu
qemu
master

搜索帮助