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

[RFC] Guard Paging Mechanism #2376

Closed

Conversation

berciuliviu
Copy link

@berciuliviu berciuliviu commented Dec 22, 2020

Reason for This PR

This PR fixes the following issue.

For now, the PR is Request-For-Comment, since the vm-memory crate does not allow for a manual setting of the Owned flag and the FileOffset.

Description of Changes

A guard page mechanism is implemented for guest memory creation and restore from Snapshot. Every memory region in the before mentioned cases will be surrounded by a left/right border, with the dimension of a PAGE_SIZE.
Rust unittests are also implemented.

  • This functionality can be added in rust-vmm.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.

PR Checklist

[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]

  • All commits in this PR are signed (git commit -s).
  • The reason for this PR is clearly provided (issue no. or explanation).
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • Any newly added unsafe code is properly documented.
  • Any API changes are reflected in firecracker/swagger.yaml.
  • Any user-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.

berciuliviu added 2 commits December 22, 2020 15:50
This patch implements a page guarding mechanism.
It will be applied at guest memory creation step and
at snapshot memory restore.

Signed-off-by: berciuliviu <[email protected]>
Decrease Pytest coverage for Page Guarding
Mechanism.

Signed-off-by: berciuliviu <[email protected]>
@berciuliviu berciuliviu changed the title qGuard Paging Mechanism Guard Paging Mechanism Dec 22, 2020
@berciuliviu berciuliviu changed the title Guard Paging Mechanism [RFC] Guard Paging Mechanism Dec 22, 2020
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