-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
refactor: move arch specific Kvm code into modules #5098
refactor: move arch specific Kvm code into modules #5098
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5098 +/- ##
==========================================
- Coverage 83.14% 83.13% -0.02%
==========================================
Files 248 249 +1
Lines 26925 26937 +12
==========================================
+ Hits 22388 22393 +5
- Misses 4537 4544 +7
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:
|
bff4a55
to
6e9a694
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.
would love to pick these commits up for the feature/secret-hiding branch!
I was planning to add more changes that include In the long term, I was envisioning all of the arch specific code to go under |
I think this on its own makes a lot of sense as a standalone PR :)
Yeah, having them be centralized would be neat indeed |
cea7cc9
to
236e4f0
Compare
Follow up of the refactoring we did in the past around vstate/vm.rs, where we separate architecture specific code in modules, keeping only the arch-independent code in 'kvm/mod.rs'. No functional changes intended. Signed-off-by: Babis Chalios <[email protected]>
Move KVM architecture-specific code under the `vmm::arch` module, so that we start having all architecture-specific code under a single module. Signed-off-by: Babis Chalios <[email protected]>
236e4f0
to
2f86e4a
Compare
2ce36a8
to
b27df01
Compare
d2448b5
to
d70a297
Compare
Move the rest of vstate architecture-specific code under `vmm::arch`. Signed-off-by: Babis Chalios <[email protected]>
d70a297
to
97f9b29
Compare
Changes
Follow up of the refactoring we did in the past around vstate/vm.rs, where we separate architecture specific code in modules, keeping only the arch-independent code in 'kvm.rs`
Moreover, move arch-specific code from
vmm::vstate
module undervmm::arch
.Reason
More readable code. No functional changes intended.
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 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
.