Merged
Conversation
3ff3112 to
10d1896
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5112 +/- ##
==========================================
- Coverage 83.19% 83.06% -0.14%
==========================================
Files 249 250 +1
Lines 26885 26888 +3
==========================================
- Hits 22368 22334 -34
- Misses 4517 4554 +37
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:
|
2bad363 to
8eb3cf9
Compare
roypat
reviewed
Mar 26, 2025
8eb3cf9 to
218274c
Compare
Initrd code was spread across multiple modules, move common part of it into one and make freestanding `load_initrd_*` functions into methods for the `InitrdConfig` struct. Also change `initrd_load_addr` method to return an option instead of an error to remove extra error nesting. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
Move `load_kernel` arch specific functions into arch module per architecture. Make the function to accept the kernel `File` instead of the `BootConfig`. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
218274c to
fe5a859
Compare
roypat
reviewed
Mar 26, 2025
fe5a859 to
902337e
Compare
Split `configure_system_for_boot` into 2 arch specific functions and move it into arch module. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
Some places were accessing `guest_memory` directly while others were using getter. Remove getter to make accesses consistent. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
902337e to
40d1287
Compare
Move manual creation of `CpuConfiguration` from `configure_system_for_boot` into `CpuConfiguration::new`. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
On aarch64 `apply_template` cannot fail, so no reason for `Result` return type. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
There is no reason to have these functions separately, so merge them. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
This is a dead code, so remove it. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
Add `align_up` and `align_down` functions to stop reimplementing them in place all over the codebase. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
Remove `map_err` calls by adding `#[from]` to error variants. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
40d1287 to
2c42f84
Compare
roypat
approved these changes
Mar 26, 2025
Contributor
|
thanks for indulging me with all those |
kalyazin
approved these changes
Mar 26, 2025
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
This is another attempt at fixing #4547.
builder.rsintoarchmodules.archmodules.Reason
Less arch specific mess in the codebase.
Fixes: #4411
Previous attempt was: #4910
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 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.