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

doc(vsock): clarify vsock support on snapshot/restore #5064

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

Manciukic
Copy link
Contributor

Changes

This patch clarifies that vsock connections are explicitly closed by a transport reset, in order to avoid the aforementioned issue. This doesn't impact listening sockets as they are able to accept new connections after restore.

Reason

The current documentation is not clear, mentioning that the device could break if active at time of snapshot. It also mentions that
this is fixed by resetting the device at snapshot time, closing all open connections.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following Developer
Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md.

PR Checklist

  • I have read and understand CONTRIBUTING.md.
  • I have run tools/devtool checkstyle to verify that the PR passes the
    automated style checks.
  • I have described what is done in these changes, why they are needed, and
    how they are solving the problem in a clear and encompassing way.
  • I have updated any relevant documentation (both in code and in the docs)
    in the PR.
  • I have mentioned all user-facing changes in CHANGELOG.md.
  • If a specific issue led to this PR, this PR closes the issue.
  • When making API changes, I have followed the
    Runbook for Firecracker API changes.
  • I have tested all new and changed functionalities in unit tests and/or
    integration tests.
  • I have linked an issue to every new TODO.

  • This functionality cannot be added in rust-vmm.

kalyazin
kalyazin previously approved these changes Mar 5, 2025
bchalios
bchalios previously approved these changes Mar 5, 2025
The current documentation is not clear, mentioning that the device could
break if active at time of snapshot. It also mentions that this is fixed
by resetting the device at snapshot time, closing all open connections.

This patch clarifies that vsock connections are explicitly closed by a
transport reset, in order to avoid the aforementioned issue. This
doesn't impact listening sockets as they are able to accept new
connections after restore.

Signed-off-by: Riccardo Mancini <mancio@amazon.com>
@Manciukic Manciukic dismissed stale reviews from bchalios and kalyazin via 9c14a90 March 5, 2025 17:02
@bchalios bchalios merged commit 74a5161 into firecracker-microvm:main Mar 6, 2025
5 checks passed
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