Enable nested KVM on M3 and newer Apple Silicon - #84
Merged
themartiano merged 2 commits intoSep 8, 2026
Conversation
Collaborator
|
Wow, this is very welcome! Please rebase, resolve the conflicts, and rerun the checks so I can merge. |
themartiano
reviewed
Sep 8, 2026
themartiano
approved these changes
Sep 8, 2026
themartiano
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the pull request!
Codex comments
Resolved the conflicts with current main, preserving boot recovery and host-sleep handling. Full make test passed, including 211 Swift tests and the nested/fallback launch contracts; pinned upstream guest-source verification also passed. A diskless QEMU 11.1.1 smoke test confirmed the compatibility fallback on this host, which reports nested virtualization unavailable. GitHub CI is waiting for fork-workflow approval; local validation is complete. Ready to merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
virt,gic-version=3,virtualization=onmachine before launch, enabling EL2 on supported Macs while retaining the existing EL1 path elsewhere/dev/kvmavailabilitymainVerification
/dev/kvm,KVM_GET_API_VERSION = 12, and a successfulKVM_CREATE_VMmake testreaches the Swift test target locally, where the Command Line Tools-only installation lacks theTestingmodule; the Swift product itself builds and CI's macOS 15 environment remains the authoritative Swift test runFixes #7