Skip to content

Conversation

@mjp41
Copy link
Member

@mjp41 mjp41 commented Jan 18, 2019

This PR makes the pagemap have OS_PAGE_SIZE alignment, and fixes the surrounding API.

Additionally, it fixes the encoding of sizeclasses into the top bits of remote allocation, to use the bottom bits, and shift the pointers up. This allows a right signed shift to preserve the sign extended address space.

mjp41 added 2 commits January 18, 2019 14:30
The encoding in the top bits for the size class did not respect kernel
pointers.  Using an intptr_t means, we can use a signed shift to
maintain the kernel pointers.
Guarantee the page map is page aligned.  Fix public API.
@mjp41 mjp41 requested a review from davidchisnall January 18, 2019 15:29
@mjp41
Copy link
Member Author

mjp41 commented Jan 18, 2019

David could you check if this works for the kernel?

Copy link
Collaborator

@davidchisnall davidchisnall left a comment

Choose a reason for hiding this comment

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

LGTM

@davidchisnall davidchisnall merged commit 20b84b9 into master Jan 18, 2019
@davidchisnall davidchisnall deleted the mjp41/refactor branch January 18, 2019 17:11
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.

3 participants