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] Add virtio balloon device #2054

Closed
wants to merge 4 commits into from

Conversation

ioanachirca
Copy link
Contributor

Reason for This PR

#1571

Description of Changes

Added a virtio balloon device that supports statistics.

Note: Because Firecracker uses a private anonymous mapping for freshly booted microVMs and private file-backed mapping for snapshot resumed microVMs, a madvise call for releasing memory is not sufficient to work in both cases.
This PR currently uses a hacky approach: before madvise, mmap a fresh private anonymous region over the one that we want the kernel to release.

There are still some things to be done:

  • take a closer look at the error handling

  • improve statistics tests

  • surface statistics through the metrics

  • 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.

@ioanachirca ioanachirca self-assigned this Jul 30, 2020
@ioanachirca ioanachirca force-pushed the balloon branch 2 times, most recently from 96663a9 to 692ed2a Compare July 31, 2020 15:39
Signed-off-by: Tamio-Vesa Nakajima <tamiove@amazon.com>
Signed-off-by: Ioana Chirca <chioana@amazon.com>
Signed-off-by: Ioana Chirca <chioana@amazon.com>
Signed-off-by: Ioana Chirca <chioana@amazon.com>
Signed-off-by: Ioana Chirca <chioana@amazon.com>
@ioanachirca ioanachirca mentioned this pull request Aug 4, 2020
9 tasks
@dianpopa dianpopa self-requested a review August 7, 2020 10:35
@iulianbarbu iulianbarbu added the Status: Awaiting review Indicates that a pull request is ready to be reviewed label Aug 17, 2020
@dianpopa
Copy link
Contributor

Closing this in favor of #2079.

@dianpopa dianpopa closed this Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting review Indicates that a pull request is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants