-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix: correctly set device status to 0 on reset #5455
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
fix: correctly set device status to 0 on reset #5455
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5455 +/- ##
=======================================
Coverage 82.78% 82.78%
=======================================
Files 263 263
Lines 27292 27292
=======================================
Hits 22594 22594
Misses 4698 4698
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with the change. I'm not fine with the justification for it. We were explicitly setting it to FAILED because we don't support reset. Just setting this to DEVICE_RESET
does not make us spec compliant since we don't actually do any resetting whatsoever.
I'm fine doing this for fixing the CI issue, but let's call it out (as well so we can keep track of why we did things).
1e9feb4
to
56a3889
Compare
56a3889
to
16e8ec3
Compare
Even though currently, no device supports resetting, when the guest attempts to reset the device we must set the status to 0 as specified in the 2.4.1 Device Requirements: Device Reset. This does not change the current status of us not supporting device resetting. This is the issue we encountered during addition of virtio-pmem device where the guest kernel now resets devices on VM shutdown. Signed-off-by: Egor Lazarchuk <[email protected]>
16e8ec3
to
32dc596
Compare
Changes
Even though currently, no device supports resetting, once the guest attempts to reset the device we must set the status to 0 as specified in the 2.4.1 Device Requirements: Device Reset.
This does not change the current status of us not supporting device resetting.
Reason
This is the issue we encountered during addition of virtio-pmem device where the guest kernel now resets devices on VM shutdown.
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
tools/devtool checkbuild --all
to verify that the PR passesbuild checks on all supported architectures.
tools/devtool checkstyle
to verify that the PR passes theautomated style checks.
how they are solving the problem in a clear and encompassing way.
in the PR.
CHANGELOG.md
.Runbook for Firecracker API changes.
integration tests.
TODO
.rust-vmm
.