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

Is it necessary to add specific arch cpu info in a crate? #39

Open
KuangjuX opened this issue May 5, 2023 · 1 comment
Open

Is it necessary to add specific arch cpu info in a crate? #39

KuangjuX opened this issue May 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@KuangjuX
Copy link
Contributor

KuangjuX commented May 5, 2023

Right now, I am designing percpu struct in hypercraft. When initializing SMP, I need to obtain information about all of cpu info, such as the number of hart, whether it supports AIA and SSTC, and so on. This information needs to be probed and parsed through device trees. However, these pieces of information are not actually part of the core content of the hypervisor. Is it necessary to add CPU probe information in ArceOS, just like https://github.com/rivosinc/salus/blob/main/drivers/src/cpu.rs#L34 ?

@equation314
Copy link
Member

equation314 commented May 5, 2023

It is okay to get CPU-related information from the device tree. But this feature is not yet a critical development direction of ArceOS. Some progress can be seen in the multicore branch and this commit: 12b1ebc

@equation314 equation314 added the enhancement New feature or request label May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants