Skip to content

Auto-enable nestedVirtualization on Apple M4 hosts#4927

Closed
Soumya-codr wants to merge 1 commit intolima-vm:masterfrom
Soumya-codr:fix-m4-gdb-sve
Closed

Auto-enable nestedVirtualization on Apple M4 hosts#4927
Soumya-codr wants to merge 1 commit intolima-vm:masterfrom
Soumya-codr:fix-m4-gdb-sve

Conversation

@Soumya-codr
Copy link
Copy Markdown

Fixes #4912 Automatically enables nestedVirtualization on Apple M4 hosts (macOS 15+) when using the VZ driver. This resolves the issue where GDB fails to fetch the SVE/SSVE vector length on M4 processors.

Signed-off-by: Soumya-codr <soumya.sagar.codr@gmail.com>
@Soumya-codr
Copy link
Copy Markdown
Author

The CI failed on the lychee link checker due to a network error reaching lima-vm.io which seems completely unrelated to my changes. Could a maintainer please re-run the failed jobs?

@jandubois
Copy link
Copy Markdown
Member

I've explained in #4912 why we will not enable nested virtualization by default.

However, even if we wanted to, this PR is using the wrong approach. It should use unix.SysctlUint32("hw.optional.arm.FEAT_SME") == 1 instead of looking for M4, M5, M6, M7, M8, M9 strings and guessing about their capabilities.

@jandubois jandubois closed this May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GDB in a lima vm on an M4 host cannot run/attach-to processes

2 participants