Comments (3)
Is it failing on let handle = boot_services.get_handle_for_protocol::<MpServices>()?;
? If so, I don't think we can do anything about that, as it indicates the UEFI environment (provided by the hypervisor, not us) is lacking this protocol.
from uefi-rs.
Given this, it seems the best path forward would be to utilize ACPI instead of the MP protocol for managing multi-processor setups. Could we explore adding ACPI support within the project to handle such configurations? This would provide a more flexible and modern approach to processor management in environments where MP protocol support is unavailable.
This is the responsibility of the operating system, and out of the scope of the uefi
crate. Not because we don't want to write the implementation, but because it would just be wrong and never generic enough. The uefi
crate is as much as possible unopinionated about how you write an OS-specific loader or kernel. These are implementation details.
So, write your own OS-specific loader or kernel as EFI app, exit the boot services, gain control over the hardware, and awake the other APs. An example how other APs are activated using IPIs can be seen in the Hedron microkernel: https://github.com/cyberus-technology/hedron/blob/8ab6bd0bd6468be4602f65280a58ced1b1999156/src/lapic.cpp#L98
from uefi-rs.
Thank you for getting back to me. Indeed, the failure occurs at let handle = boot_services.get_handle_for_protocol::<MpServices>()?;
, and I understand that this reflects a limitation of the UEFI implementation provided by Hyper-V, not in the crate.
Given this, it seems the best path forward would be to utilize ACPI instead of the MP protocol for managing multi-processor setups. Could we explore adding ACPI support within the project to handle such configurations? This would provide a more flexible and modern approach to processor management in environments where MP protocol support is unavailable.
I should have been clearer in my initial inquiry about aiming to use ACPI for this purpose. Looking forward to your thoughts on how we might integrate this.
from uefi-rs.
Related Issues (20)
- Nevermind... HOT 1
- How to make a runtime driver? 🤔 HOT 9
- Allow getting a MemoryMap from a pointer
- how can I found the `Miscellaneous Protocols` and use it HOT 17
- How do I get a device path of a efi image? HOT 2
- Nuke "uefi-services" from repository
- Whether a lifecycle container/manager can be provided to store the currently open protocol? HOT 4
- Example application fails to build with "could not find `helpers` in `uefi`" HOT 3
- `uefi::helpers` not found / Rust UEFI Book out of sync HOT 2
- Can not write file HOT 2
- No graphics HOT 2
- Set default features for uefi crate
- Bring back some form of "test latest release" CI job
- Memory Leak occurs when `GraphicsOutput::query_mode` is called. HOT 4
- Rethink (im)mutabiltiy of device paths (`DevicePathBuilder` / `install_protocol_interface`) HOT 4
- Consider renovatebot instead of dependabot
- Allow building device paths as constants HOT 2
- Dependency Dashboard
- Tracking Issue: High-level API filesystem usability HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uefi-rs.