代码拉取完成,页面将自动刷新
同步操作将从 src-anolis-os/qemu-kvm 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。