Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu __am_ncpu 无法正确识别到核心数 #22

Open
Holence opened this issue Oct 16, 2024 · 1 comment
Open

qemu __am_ncpu 无法正确识别到核心数 #22

Holence opened this issue Oct 16, 2024 · 1 comment

Comments

@Holence
Copy link

Holence commented Oct 16, 2024

qemu版本 7.2.13

make传入-smp "4",但在am/src/x86/qemu/trm.c__am_lapic_init()最后只能识别到1个

如果把qemu.mk中的-smp "$(smp)"改为-smp "$(smp),sockets=$(smp),cores=1"好像可以解决问题

qemu的文档中说

For example, the following option defines a machine board with 2 sockets of 1 core before 6.2 and 1 socket of 2 cores after 6.2:
    -smp 2
@Wenz-jam
Copy link

当时向jyy老师提出这个问题后的回复:

哈哈哈。我在梦中fix了吗。我记得我fix过一次(至少我100%确定我上课demo的时候代码修复了),在新版本QEMU里不能直接-smp了。

这个就留给同学们自己发现 :) 群里也有过讨论哈。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants