Skip to content

Conversation

@mgudaram
Copy link
Contributor

@mgudaram mgudaram commented Nov 24, 2025

Adding test framework for crash MSR update feature


// Test scenario for crash MSR updates
#[cfg(all(feature = "test-crashmsr", feature = "vmcall-raw"))]
panic_with_guest_crash_reg_report(0xFF, b"Test Crash MSR updates");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have concern to put test code directly into the production code.

Maybe a better way is to create a test-payload and put all test code there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good jiewen, I have moved them to test framework. Please let me know if that works.

Signed-off-by: Gudaram, Meghana <meghana.gudaram@intel.com>
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.

2 participants