-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Queue tweaks #4726
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
Queue tweaks #4726
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4726 +/- ##
==========================================
- Coverage 84.37% 84.34% -0.03%
==========================================
Files 249 249
Lines 27452 27461 +9
==========================================
Hits 23162 23162
- Misses 4290 4299 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
96211c9
to
4994c1b
Compare
4994c1b
to
79445d7
Compare
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 got some comments, mainly regarding documentation of the changes in the commit messages. Please be wordy in these. It might be obvious now why we did this change, but months/years from now it won't.
Also, have you checked whether the new functions added here affect kani proofs somehow, or whether we need to add new proofs? (cc @roypat).
Finally, I will be approving this only after I take a look at the mergeable buffers PR. The usefulness of these commits depends on that other PR. Please do NOT merge until then.
Actually, kani does break :/ |
79445d7
to
a769a2a
Compare
On this part, I think we are fine because we're only moving code around inside functions that are covered (and The timeout simply means that we wandered off the happy path of "verification finishes in a reasonable amount of time" 😭 |
b475b72
to
68c10f0
Compare
You are right, today! However, this is all preparatory work for the next PR which will actually make direct use of these new functions. This is what I'm worried about. |
476d541
to
f8299b4
Compare
e96abbb
to
4c8a332
Compare
Now IoVecBufferMut can be reloaded from DescriptorChain same way as IoVecBuffer does it. This is helpful to avoid unnecessary allocations/deallocations when reusing same buffer. Signed-off-by: Egor Lazarchuk <[email protected]>
Replace numbers with more descriptive `size_of` methods. Signed-off-by: Egor Lazarchuk <[email protected]>
`Self::default()` is a bit more compact. Signed-off-by: Egor Lazarchuk <[email protected]>
4c8a332
to
25b0b15
Compare
Some changes that we did in the VirtIO queue in this PR: firecracker-microvm#4726 pushed kani proofs close to the time limit we set in the CI. This commit just increases the timeout from 30 to 40 minutes. Signed-off-by: Babis Chalios <[email protected]>
Some changes that we did in the VirtIO queue in this PR: firecracker-microvm#4726 pushed kani proofs close to the time limit we set in the CI. This commit just increases the timeout from 30 to 40 minutes. Signed-off-by: Babis Chalios <[email protected]>
Some changes that we did in the VirtIO queue in this PR: firecracker-microvm#4726 pushed kani proofs close to the time limit we set in the CI. This commit just increases the timeout from 30 to 40 minutes. Signed-off-by: Babis Chalios <[email protected]>
Some changes that we did in the VirtIO queue in this PR: firecracker-microvm#4726 pushed kani proofs close to the time limit we set in the CI. This commit just increases the timeout from 30 to 40 minutes. Signed-off-by: Babis Chalios <[email protected]>
Some changes that we did in the VirtIO queue in this PR: #4726 pushed kani proofs close to the time limit we set in the CI. This commit just increases the timeout from 30 to 40 minutes. Signed-off-by: Babis Chalios <[email protected]>
Some changes that we did in the VirtIO queue in this PR: firecracker-microvm#4726 pushed kani proofs close to the time limit we set in the CI. This commit just increases the timeout from 30 to 40 minutes. Signed-off-by: Babis Chalios <[email protected]> (cherry picked from commit b8ca08e)
Some changes that we did in the VirtIO queue in this PR: firecracker-microvm#4726 pushed kani proofs close to the time limit we set in the CI. This commit just increases the timeout from 30 to 40 minutes. (cherry picked from commit b8ca08e) Signed-off-by: Babis Chalios <[email protected]>
Some changes that we did in the VirtIO queue in this PR: #4726 pushed kani proofs close to the time limit we set in the CI. This commit just increases the timeout from 30 to 40 minutes. (cherry picked from commit b8ca08e) Signed-off-by: Babis Chalios <[email protected]>
Changes
std::mem::size_of
instead of hard-coded valuesIoVecBuffMut
the same way as it can be done with nonMut
variantReason
These were part of #4658, but because these changes seem generic, move into separate PR.
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
PR.
CHANGELOG.md
.TODO
s link to an issue.contribution quality standards.
rust-vmm
.