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

Testing cpuid #3355

Conversation

JonathanWoollett-Light
Copy link
Contributor

Changes

Adds additional testing onto the cpuid crate in the feature/cpu-templates feature branch.

Reason

Increases safety.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.

PR Checklist

  • All commits in this PR are signed (git commit -s).
  • 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.
  • New unsafe code is documented.
  • 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.

  • This functionality can be added in rust-vmm.

pb8o
pb8o previously approved these changes Feb 1, 2023
src/cpuid/src/intel/normalize.rs Outdated Show resolved Hide resolved
src/cpuid/src/intel/normalize.rs Outdated Show resolved Hide resolved
pb8o
pb8o previously approved these changes Feb 1, 2023
src/cpuid/src/intel/normalize.rs Outdated Show resolved Hide resolved
src/cpuid/src/intel/normalize.rs Outdated Show resolved Hide resolved
src/cpuid/src/intel/normalize.rs Outdated Show resolved Hide resolved
src/cpuid/src/intel/normalize.rs Outdated Show resolved Hide resolved
src/cpuid/src/cpuid_ffi.rs Show resolved Hide resolved
Refactors `cpuid::intel::IntelCpuid::default_brand_string` to add tests.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Additional tests for `cpuid::common::get_cpuid`.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Fixes behaviour of `RawCpuid::push` and `RawCpuid::pop`, and removes
`RawCpuid::resize`.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Simple tests for `CpuidTrait::get` and `CpuidTrait::get_mut`.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Change `Intel(4)` to `Intel(R)` from the Intel brand string under
cpuid.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
@JonathanWoollett-Light JonathanWoollett-Light merged commit 45fd924 into firecracker-microvm:feature/cpu-templates Feb 3, 2023
@JonathanWoollett-Light JonathanWoollett-Light deleted the testing-cpuid branch February 7, 2023 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants