You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for offering the precious macOS arm runners! However, as suggested in many places, the runners are virtualized with Apple Virtualization Framework and thus run jobs under EL1. This doesn't allow users to access many system registers, including SPRR. Our use case is to use this register to determine the current JIT state, as Apple doesn't offer an API to do so. This works pretty well on bare metal machines as SPRR is accessible.
From the post here, probably Github Action needs to add com.apple.private.hypervisor.vmapple entitlement to the hypervisor. I understand this use case might be minor but I would appreciate if Github Action can add this so that we can test and distribute pre-built python wheels.
wtdcode
changed the title
macOS runner doesn't allow access to system registers
macOS arm64 runner doesn't allow access to system registers
Dec 8, 2024
Description
Hello,
Thanks for offering the precious macOS arm runners! However, as suggested in many places, the runners are virtualized with Apple Virtualization Framework and thus run jobs under EL1. This doesn't allow users to access many system registers, including SPRR. Our use case is to use this register to determine the current JIT state, as Apple doesn't offer an API to do so. This works pretty well on bare metal machines as SPRR is accessible.
From the post here, probably Github Action needs to add
com.apple.private.hypervisor.vmapple
entitlement to the hypervisor. I understand this use case might be minor but I would appreciate if Github Action can add this so that we can test and distribute pre-built python wheels.Platforms affected
Runner images affected
Image version and build link
Image: macos-14-arm64
Version: 20241202.580
Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20241202.580/images/macos/macos-14-arm64-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20241202.580
Is it regression?
No
Expected behavior
Allow acess to system registers.
Actual behavior
Receive
Illegal instruction: 4
Repro steps
We have a code snippet to reproduce this:
Run it by:
This works well on bare metal machines while crashes on Github Action runners.
The text was updated successfully, but these errors were encountered: