Draft
Conversation
ea64f64 to
b1ec3e5
Compare
2532fce to
94a41e1
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds comprehensive unit tests for the virtual machine abstraction layer that supports KVM, MSHV, and WHP hypervisors. The tests validate register operations (general purpose, FPU, and special registers) and memory mapping functionality across different hypervisor implementations.
Changes:
- Added a
boxed_vm()helper function to create VM instances based on available hypervisor - Added unit tests for general purpose registers, FPU registers, special registers, and memory mapping operations
- Implemented platform-specific workarounds (e.g., KVM's MXCSR handling) and appropriate cfg gates for platform-specific features
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
94a41e1 to
f5474e5
Compare
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.
Adds some simple tests which exercise all drivers.