-
Notifications
You must be signed in to change notification settings - Fork 123
virt_mshv_vtl: Trace guest crash message #1395
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
Conversation
Example output from a linux guest (windows doesn't seem to ever report a message?)
|
let mut message = vec![0; message_size as usize]; | ||
match self.partition.gm[vtl].read_at(message_gpa, &mut message) { | ||
Ok(()) => { | ||
let message = String::from_utf8_lossy(&message).into_owned(); |
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.
is into_owned required here? &str doesn't implement tracing::value?
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.
Cow doesn't implement tracing::value for whatever reason.
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.
nice, thanks for doing this.
Upgrade these traces to warnings to make them easier to spot, mark the guest crash message as explicitly confidential for CVMs.