Skip to content

[v0.23.0] Cherry-pick commits #2186

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

Merged
merged 5 commits into from
Oct 15, 2020
Merged

Conversation

alindima
Copy link
Contributor

@alindima alindima commented Oct 15, 2020

Reason for This PR

Cherry pick relevant commits from master and v0.22.1 bug fix.

Description of Changes

Fixes possible load-load data inconsistency on arm.
Documentation updates for snapshotting.
Fixes #2177

  • 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 and others added 4 commits October 15, 2020 07:44
Fixed a bug in the virtio mechansim which could lead to
the virtqueue reading stale data.
Specifically, the virtqueue pop() function reads the index of
the available ring tail from the driver in order to check for new
descriptors made available.
Based on that, it goes on to read the location of
the available virtq descriptors. This introduces a load-load
control dependency for which we need to protect against with
a full memory barrier on weak memory models like arm.

Signed-off-by: Diana Popa <[email protected]>
@sandreim
Copy link
Contributor

Looks good, make sure you also link the issues fixed by the commits.

@sandreim sandreim self-requested a review October 15, 2020 09:47
sandreim
sandreim previously approved these changes Oct 15, 2020
iulianbarbu
iulianbarbu previously approved these changes Oct 15, 2020
Signed-off-by: Iulian Barbu <[email protected]>
Suggested-by: Andreea Florescu <[email protected]>
@alindima
Copy link
Contributor Author

Edited the serial patch, now all tests pass. @iulianbarbu @sandreim please take another look.

@sandreim sandreim merged commit d4d24ea into firecracker-microvm:v0.23.0 Oct 15, 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.

4 participants