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

use upstream kvm-ioctls #2319

Merged

Conversation

andreeaflorescu
Copy link
Member

Reason for This PR

This purpose of this PR is to reduce the overhead needed for maintaining, and releasing the firecracker-microvm/kvm-ioctls fork. The changes enable using the upstream kvm-ioctls, while still keeping the kvm-bindings + versionize support.

Description of Changes

This should reduce the burden of maintaining forks of both kvm-ioctls
and kvm-bindings, and allows us to use the upsream kvm-ioctls while only
replacing the kvm-bindings dependency with one that supports versionize.

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

sandreim
sandreim previously approved these changes Dec 4, 2020
This should reduce the burden of maintaining forks of both kvm-ioctls
and kvm-bindings, and allows us to use the upsream kvm-ioctls while only
replacing the kvm-bindings dependency with one that supports versionize.

As part of this switch, an update to the tests was also needed because
the KVM::new_with_fd_number was removed. The same functionality is
offered through the from_raw_fd method.

Signed-off-by: Andreea Florescu <fandree@amazon.com>
Copy link
Contributor

@acatangiu acatangiu left a comment

Choose a reason for hiding this comment

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

Super duper awesome! 🚀

@sandreim sandreim self-requested a review December 4, 2020 09:52
@sandreim sandreim merged commit 85e8a45 into firecracker-microvm:master Dec 4, 2020
@andreeaflorescu andreeaflorescu deleted the use_upstream_kvm_ioctls branch December 4, 2020 11:35
kumargu added a commit to kumargu/firecracker that referenced this pull request Dec 8, 2020
fix crate path of vm_memory

Signed-off-by: kumargu <kumargu@amazon.com>
@kumargu kumargu mentioned this pull request Dec 9, 2020
9 tasks
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