1 Star 0 Fork 38

xisme/qemu-kvm_src-anolis

forked from src-anolis-os/qemu-kvm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Fix-smp.cores-value.patch 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
Xianglai Li 提交于 2024-08-29 19:00 +08:00 . fix compile error for loongarch
From 902dc77676bc6ada74ddbdb57d00821435550bdb Mon Sep 17 00:00:00 2001
From: lixianglai <lixianglai@loongson.cn>
Date: Mon, 29 May 2023 07:55:12 -0400
Subject: [PATCH 21/28] Fix smp.cores value
The smp.cores should use the default value passed from
qemu start command, and the argument is cores_per_socket.
Signed-off-by: lixianglai <lixianglai@loongson.cn>
---
hw/loongarch/larch_3a.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/hw/loongarch/larch_3a.c b/hw/loongarch/larch_3a.c
index b1501e0ea..8fc79546d 100644
--- a/hw/loongarch/larch_3a.c
+++ b/hw/loongarch/larch_3a.c
@@ -1211,14 +1211,7 @@ static void loongarch_build_smbios(LoongarchMachineState *lsms)
uint8_t *smbios_tables, *smbios_anchor;
size_t smbios_tables_len, smbios_anchor_len;
const char *product = "QEMU Virtual Machine";
- int nb_numa_nodes, smp_cpus;
- smp_cpus = ms->smp.cpus;
- nb_numa_nodes = ms->numa_state->num_nodes;
- if (nb_numa_nodes == 0) {
- nb_numa_nodes = 1;
- }
- ms->smp.cores = smp_cpus / nb_numa_nodes;
if (!lsms->fw_cfg) {
return;
}
--
2.43.5
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xisme/qemu-kvm_src-anolis.git
git@gitee.com:xisme/qemu-kvm_src-anolis.git
xisme
qemu-kvm_src-anolis
qemu-kvm_src-anolis
vtkm_support_csv

搜索帮助

371d5123 14472233 46e8bd33 14472233