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

keystone-driver: linux 6.8 support #441

Merged
merged 1 commit into from
May 1, 2024

Conversation

Nanamiiiii
Copy link
Contributor

This PR adds support for newest stable linux to keystone driver.

In Linux 6.8, macro MAX_ORDER is renamed to MAX_PAGE_ORDER.
https://elixir.bootlin.com/linux/v6.8.8/source/include/linux/mmzone.h#L30

Compilation will fail in linux 6.8 because of this change.
To avoid this, I added preprocessor that changes the name depending on the kernel version.

This works correctly under Ubuntu 24.04 that uses kernel 6.8.0-31-generic.
I also tested on real hardware, HiFive Unmatched.

Thanks.

Copy link
Collaborator

@grg-haas grg-haas left a comment

Choose a reason for hiding this comment

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

This looks good to me! Thank you for your contribution.

@grg-haas grg-haas merged commit b40dbb6 into keystone-enclave:master May 1, 2024
17 of 18 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.

2 participants