Skip to content
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

vmm: Remove PC from vCPU config dump #4118

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

zulinx86
Copy link
Contributor

@zulinx86 zulinx86 commented Sep 20, 2023

Changes

  • Remove PC from the vCPU config dump in a fingerprint file.

Reason

The dumped vCPU config is used to:

  • create a new custom CPU template based on it
  • keep track of its changes over time.

The value of program counter (PC) is determined by the given kernel image, so it should not be overwritten by a custom CPU template and does not need to be tracked as part of a fingerprint file.

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

  • [ ] If a specific issue led to this PR, this PR closes the issue.
  • The description of changes is clear and encompassing.
  • [ ] Any required documentation changes (code and docs) are included in this PR.
  • [ ] API changes follow the Runbook for Firecracker API changes.
  • User-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.
  • [ ] New TODOs link to an issue.
  • Commits meet contribution quality standards.

  • This functionality cannot be added in rust-vmm.

@zulinx86 zulinx86 self-assigned this Sep 20, 2023
@zulinx86 zulinx86 added the Type: Fix Indicates a fix to existing code label Sep 20, 2023
@zulinx86 zulinx86 force-pushed the remove_pc_from_fp branch 2 times, most recently from bde8d4e to 4a0a44e Compare September 20, 2023 14:58
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (3156667) 82.28% compared to head (3856b58) 82.29%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4118   +/-   ##
=======================================
  Coverage   82.28%   82.29%           
=======================================
  Files         225      225           
  Lines       28457    28470   +13     
=======================================
+ Hits        23416    23429   +13     
  Misses       5041     5041           
Flag Coverage Δ
4.14-c7g.metal 77.70% <100.00%> (+0.01%) ⬆️
4.14-m5d.metal 79.59% <ø> (-0.02%) ⬇️
4.14-m6a.metal 78.69% <ø> (ø)
4.14-m6g.metal 77.70% <100.00%> (+0.01%) ⬆️
4.14-m6i.metal 79.57% <ø> (ø)
5.10-c7g.metal 80.61% <100.00%> (+0.01%) ⬆️
5.10-m5d.metal 82.25% <ø> (-0.03%) ⬇️
5.10-m6a.metal 81.46% <ø> (ø)
5.10-m6g.metal 80.61% <100.00%> (+0.01%) ⬆️
5.10-m6i.metal 82.24% <ø> (ø)
6.1-c7g.metal 80.61% <100.00%> (+0.01%) ⬆️
6.1-m5d.metal 82.25% <ø> (-0.03%) ⬇️
6.1-m6a.metal 81.46% <ø> (ø)
6.1-m6g.metal 80.61% <100.00%> (+0.01%) ⬆️
6.1-m6i.metal 82.24% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/vmm/src/vstate/vcpu/aarch64.rs 94.15% <100.00%> (+0.53%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zulinx86 zulinx86 mentioned this pull request Sep 20, 2023
4 tasks
@zulinx86 zulinx86 force-pushed the remove_pc_from_fp branch 4 times, most recently from df99d07 to cdb88f8 Compare September 20, 2023 17:18
The dumped vCPU config is used to:
- create a new custom CPU template based on it
- keep track of its changes over time.

The value of program counter (PC) is determined by the given kernel
image, so it should not be overwritten by a custom CPU template and
does not need to be tracked as part of a fingerprint file.

Signed-off-by: Takahiro Itazuri <[email protected]>
The /proc/cpuinfo shows what the lscpu command shows and the microcode
version.

Signed-off-by: Takahiro Itazuri <[email protected]>
@zulinx86 zulinx86 added the Status: Awaiting review Indicates that a pull request is ready to be reviewed label Sep 21, 2023
@zulinx86 zulinx86 merged commit 8460464 into firecracker-microvm:main Sep 21, 2023
6 checks passed
@zulinx86 zulinx86 deleted the remove_pc_from_fp branch September 21, 2023 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting review Indicates that a pull request is ready to be reviewed Type: Fix Indicates a fix to existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants