-
Notifications
You must be signed in to change notification settings - Fork 81
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
Emulate GICv3 on macos #229
Conversation
Took an initial look at the PR and so far looks pretty good. A couple of comments:
Thanks for the contribution! |
7b98808
to
7da9f14
Compare
Seems there's a few |
Should be all cleaned up now. I checked on arm64 macOS and x86 Linux (... and arm64 Linux 😅). |
Thanks! All checks passed. Do I need to do anything special to test, or is it as simple as pulling your branch and running on macOS? |
Yeah, should be as simple as pulling the branch and running on macOS. The simplest smoke test would be to run the
|
Thanks, I've tried testing but noticed you're linking with |
To build the EFI variant:
Though the |
@p1-0tr I've started tested this one (on an M3 Pro with macOS 15.1.1), but with both the EFI and regular flavors the kernel is hanging on boot for me if the microVM has 4 or more vCPUs (works fine with 1 to 3 vCPUs). Is this working well for you with >3 vCPUs? (I haven't started debugging it yet as I thought I should ask first) |
I'll re-test first thing tomorrow morning. I am pretty sure the changes work with more than 4 CPUs (I had the code running with 32 cores on an 8 core machine, after that over provisioning seems to go bad), but I've not confirmed with the |
@slp Hmm, the
I didn't change much about the example itself:
I'm on an M1 mbp running macOS 14.6.1 . How do you test the EFI variant (I've not had much luck with |
The problem was that IPIs weren't working properly, as a result of a mismatch of the vCPU IDs between HVF and the userspace thread. With #242 in, this PR works fine for me. Could you please rebase it? I think we should be able to merge it afterwards. |
Signed-off-by: Djordje Lukic <[email protected]> Signed-off-by: David Gageot <[email protected]> Signed-off-by: Piotr Stankiewicz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully tested on M1 and M3, both the regular and the EFI flavors.
Thanks for the contribution!
This PR adds support for GICv3 emulation on mac hosts.
Before merging I need to:
hvf
packageAny feedback will be greatly appreciated :)