-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Maintenance 3 #5557
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
base: main
Are you sure you want to change the base?
Maintenance 3 #5557
Conversation
ae25a1d to
ed4d917
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5557 +/- ##
==========================================
- Coverage 83.23% 83.22% -0.02%
==========================================
Files 277 277
Lines 29265 29282 +17
==========================================
+ Hits 24359 24370 +11
- Misses 4906 4912 +6
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:
|
ba3cd70 to
694289e
Compare
a0966ff to
6587ebb
Compare
c15a161 to
e2e15fe
Compare
| /// Represent it as u8 to give it a known size. | ||
| /// All used types fit in u8. | ||
| #[allow(clippy::cast_possible_truncation)] | ||
| #[repr(u8)] |
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.
QEMU uses u16 and there's actually already almost 40 of them!
https://elixir.bootlin.com/qemu/v7.2.10/source/include/hw/virtio/virtio.h#L113
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 just selected the smallest type because it can hold 256 values which is over the top for what we need. This is also correlated to the fact that sometimes we need to convert this type to u16 or u32, so u8 (o u16) will work.
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.
can we do u16 for consistency then?
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 would prefer to keep it u8 as this is the most flexible type in case we will do some other change that would benefit from having virtio type as u8.
e2e15fe to
d36ab1f
Compare
Replace fmt.toml with new rustfmt.toml Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
Fix new clippy warnings Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
Instead of using `u32` values directly from generated `virtio_ids` create an enum backed by u8 with all types we actually use Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
Add a trait method to VirtioDevice to get a unique device id. This can be used in default imps of some other methods to print current device id in case of an error/warning etc. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
Replace different `kick` implementations with a default implementation in the `VirtioDevice` trait. Change the `kick` logic to just re-trigger queue events instead of manually calling different internal queue processing functions. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
Update names for remaining BK pipelines. This is needed because BK labels are used as a part of the s3 path where the BK artifacts are uploaded. Removing emojis and normalizing names simplifies these paths. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
These variables are no longer needed for A/B since A/B scripts use `metrics.json` files which are always emitted, instead of `test-report.json`. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
Fix incorrect instructions about running `tools/ab_test.py` with manually collected test results. Move A/B visualization section after manual test collection section as `tools/ab_plot.py` script is using same inputs as `tools/ab_test.py` Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
There is no need for build directory or ci artifacts to be present to run style checks. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
d36ab1f to
9d651da
Compare
Changes
u32virtio device type with actualVirtioDeviceTypeenumidmethod toVirtioDevicetraitkickmethod inVirtioDevicetrait that re-triggers queue eventfds instead ofdoing manual queue reprocessing
Reason
Maintenance
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 --allto verify that the PR passesbuild checks on all supported architectures.
tools/devtool checkstyleto 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.