Skip to content

Expose CPU features to AArch64 Linux guests via AT_HWCAP/AT_HWCAP2 - #1710

Merged
Sangho Lee (sangho2) merged 2 commits into
uliteboxfrom
sanghle/ulitebox/aarch64_hwcaps
Oct 23, 2026
Merged

Sangho Lee (sangho2) merged 2 commits into
uliteboxfrom
sanghle/ulitebox/aarch64_hwcaps

Conversation

@sangho2

@sangho2 Sangho Lee (sangho2) commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

This PR exposes CPU features to AArch64 Linux guests via AT_HWCAP/AT_HWCAP2. Unlike on x86-64, AArch64 user code (EL0) cannot read the CPU's ID registers by itself and relies on these kernel-provided values. Currently, the Linux shim omits both, so guests' feature detection falls back to the baseline. A new ArchSpecificProvider::get_guest_cpu_features lets the platform report the CPU features whose state it preserves, and the shim filters out unsupported features.

@sangho2
Sangho Lee (sangho2) force-pushed the sanghle/ulitebox/aarch64_hwcaps branch from 3192185 to 14224ad Compare October 23, 2026 19:17
@sangho2
Sangho Lee (sangho2) marked this pull request as ready for review October 23, 2026 19:23
@sangho2
Sangho Lee (sangho2) force-pushed the sanghle/ulitebox/aarch64_hwcaps branch 2 times, most recently from 360a881 to 6fe11af Compare October 23, 2026 22:36
@sangho2
Sangho Lee (sangho2) force-pushed the sanghle/ulitebox/aarch64_hwcaps branch from 6fe11af to 991c27d Compare October 23, 2026 22:53
@sangho2 Sangho Lee (sangho2) changed the title Expose host CPU features to AArch64 Linux guests via AT_HWCAP/AT_HWCAP2 Expose CPU features to AArch64 Linux guests via AT_HWCAP/AT_HWCAP2 Oct 23, 2026
@sangho2
Sangho Lee (sangho2) added this pull request to the merge queue Oct 23, 2026
Merged via the queue into ulitebox with commit 5b2c28a Oct 23, 2026
13 checks passed
@sangho2
Sangho Lee (sangho2) deleted the sanghle/ulitebox/aarch64_hwcaps branch October 23, 2026 23:08
@github-actions

Copy link
Copy Markdown

🤖 SemverChecks 🤖 No breaking API changes detected

Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered.

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.

1 participant