Skip to content

fix unverified code#530

Closed
hiroki-chen wants to merge 1 commit into
asterinas:mainfrom
hiroki-chen:mm-fix
Closed

fix unverified code#530
hiroki-chen wants to merge 1 commit into
asterinas:mainfrom
hiroki-chen:mm-fix

Conversation

@hiroki-chen

Copy link
Copy Markdown
Collaborator

This PR fixes some of the unverified functions in page_table.

@hiroki-chen

Copy link
Copy Markdown
Collaborator Author

/ci-upstream-verus

Comment thread ostd/src/mm/mod.rs
ensures
0 < Self::BASE_PAGE_SIZE_spec(),
is_pow2(Self::BASE_PAGE_SIZE_spec() as int),
Self::BASE_PAGE_SIZE_spec() == PAGE_SIZE,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should this be defined in PagingConstsTrait?

Comment thread ostd/src/mm/mod.rs
Self::NR_LEVELS_spec() == NR_LEVELS,
is_pow2(Self::PTE_SIZE_spec() as int),
0 < Self::PTE_SIZE_spec() <= Self::BASE_PAGE_SIZE_spec(),
Self::BASE_PAGE_SIZE_spec() / Self::PTE_SIZE_spec() == NR_ENTRIES,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There is already a lemma_nr_subpage_per_huge_eq_nr_entries.

@hiroki-chen

Copy link
Copy Markdown
Collaborator Author

Superceded by #532.

@hiroki-chen hiroki-chen deleted the mm-fix branch June 16, 2026 08:37
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