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

Rust toolchain upgrade 1.64 -> 1.66 for Firecracker v1.2 #3343

Conversation

andreitraistaru
Copy link
Contributor

Reason

Rust toolchain upgrade from 1.64 to 1.66.

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

  • All commits in this PR are signed (git commit -s).
  • If a specific issue led to this PR, this PR closes the issue.
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • New unsafe code is documented.
  • API changes follow the Runbook for Firecracker API changes.
  • User-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.
  • New TODOs link to an issue.

  • This functionality can be added in rust-vmm.

@andreitraistaru andreitraistaru self-assigned this Dec 29, 2022
@andreitraistaru andreitraistaru force-pushed the firecracker-v1.2 branch 2 times, most recently from 2a37f50 to 096fe16 Compare December 31, 2022 12:57
@andreitraistaru andreitraistaru marked this pull request as ready for review December 31, 2022 12:57
(cherry picked from commit 4ae37a4)
(cherry picked from commit e01e6db)
Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Signed-off-by: Traistaru Andrei Cristian <atc@amazon.com>
Signed-off-by: Traistaru Andrei Cristian <atc@amazon.com>
andreitraistaru and others added 3 commits December 31, 2022 13:23
As a result of the Rust toolchain upgrade from 1.65 to 1.66,
several clippy errors appeared (most of them being
clippy::unneccesary_cast). This commit fixes these errors.

(cherry picked from commit 0de96ce)
(cherry picked from commit 8e2c2b9)
Signed-off-by: Traistaru Andrei Cristian <atc@amazon.com>
The previous approach was to iterate through the known attached file
descriptors, we now instead iterate through and attempt to close all
possible attached file descriptors. This offers a more robust
and safe implementation.

This fixes a bug which arises in Rust versions >=1.65.0 from a file
descriptor being closed twice.

(cherry picked from commit f79c94d)
(cherry picked from commit ac0735d)
Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Signed-off-by: Traistaru Andrei Cristian <atc@amazon.com>
Signed-off-by: Traistaru Andrei Cristian <atc@amazon.com>
tools/devtool Show resolved Hide resolved
@dianpopa dianpopa merged commit 13db249 into firecracker-microvm:firecracker-v1.2 Jan 3, 2023
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.

None yet

4 participants