Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu: aarch64: switch to -cpu max for PAC/BTI #20

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

nickdesaulniers
Copy link
Member

The PAC/BTI instructions were added in v8.3a/v8.5a.
(See https://reviews.llvm.org/D62609).
Without enabling this cpu, the instructions are treated as NOPS. Switch
to a CPU that will use these instructions, testing kernel configs
(CONFIG_ARM64_PTR_AUTH, CONFIG_ARM64_BTI) which we will ship and
Android+CrOS as soon as hardware is available.

Suggested-by: Mark Brown broonie@kernel.org

The PAC/BTI instructions were added in v8.3a/v8.5a.
(See https://reviews.llvm.org/D62609).
Without enabling this cpu, the instructions are treated as NOPS.  Switch
to a CPU that will use these instructions, testing kernel configs
(CONFIG_ARM64_PTR_AUTH, CONFIG_ARM64_BTI) which we will ship and
Android+CrOS as soon as hardware is available.

Suggested-by: Mark Brown <broonie@kernel.org>
Copy link
Member

@nathanchance nathanchance left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me

@nickdesaulniers nickdesaulniers merged commit 7872af7 into master Jun 16, 2020
@nickdesaulniers nickdesaulniers deleted the aarch64_cpu_all branch June 16, 2020 18:33
@nickdesaulniers
Copy link
Member Author

thanks for the reviews!

nickdesaulniers added a commit to ClangBuiltLinux/continuous-integration that referenced this pull request Jun 22, 2020
Changing -cpu to max in
ClangBuiltLinux/boot-utils#20
for PAC+BTI emulation seems to have slowed our boot tests down.

Fixes: https://github.com/ClangBuiltLinux/linux/issues/1058
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
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.

None yet

2 participants