Giter Club home page Giter Club logo

Comments (3)

nicholasbishop avatar nicholasbishop commented on June 16, 2024 1

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.

phip1611 avatar phip1611 commented on June 16, 2024 1

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.

memN0ps avatar memN0ps commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.