Skip to content

Hide SME from the guest so M4 apps stop dying with SIGILL - #374

Merged
themartiano merged 4 commits into
omacom:mainfrom
ln-bodicherla:fix/372-hide-sme
Oct 19, 2026
Merged

themartiano merged 4 commits into
omacom:mainfrom
ln-bodicherla:fix/372-hide-sme

Conversation

@ln-bodicherla

Copy link
Copy Markdown
Contributor

What changed and why

Fixes #372. On an M4 the guest reports sme/sme2 but no sve, and QEMU under HVF has no sme property to turn it off. Code that runs an SVE instruction before smstart (Slack's camera path; likely libyuv, so other Chromium/Electron apps too) dies with SIGILL.

This adds /etc/limine-entry-tool.d/50-try-omarchy-cpu.conf with KERNEL_CMDLINE[default]+=" arm64.nosme", the fix the reporter tested. It is a separate drop-in from the console one so it can be dropped on its own once QEMU can hide SME under HVF. It is a pacman backup file like the console drop-in, the package README lists it, and pkgrel is bumped. Chips before the M4 have no SME, so the option is a no-op there.

Like the console drop-in, it takes effect when Limine's entries are next rebuilt: in the factory build, and on existing VMs at the next kernel update (or sudo limine-update).

Note: #373 also bumps pkgrel to 24; whichever merges second needs 25, and I'll rebase.

Testing

ln-bodicherla and others added 4 commits October 17, 2026 13:02
The M4 has SME but no SVE, and QEMU under HVF cannot drop SME from the
vCPU. Code that runs an SVE instruction before smstart, such as Slack's
camera path, then crashes with SIGILL. Add arm64.nosme through a new
limine-entry-tool drop-in, listed as a backup file, and bump pkgrel.
Earlier Apple chips have no SME, so nothing changes for them.

Fixes omacom#372
@themartiano
themartiano merged commit c15d82e into omacom:main Oct 19, 2026
7 checks passed
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.

Slack crashes with SIGILL on camera use because the M4 guest reports SME without SVE

2 participants