You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- added new guest fxn to simpleguest that triggers an invalid
opcode exception
- added test in guest_dispatch that calls the new guest fxn
to test exception handling
Signed-off-by: danbugs <[email protected]>
// TODO: because we set the stack as NX in the guest PTE we get a generic error, once we handle the exception correctly in the guest we can make this more specific
389
+
// (Note) We do this because, currently:
390
+
// - the C guest triggers a generic error, while
391
+
// - the Rust guest triggers a proper exception.
392
+
// TODO: figure out discrepancy between C and Rust guests here
) || matches!(err,HyperlightError::Error(ref s)if s.starts_with("Unexpected VM Exit"))
427
-
|| matches!(err,HyperlightError::Error(ref s)if s.starts_with("unknown Hyper-V run message type"))// Because the memory is set as NX in the guest PTE we get a generic error, once we handle the exception correctly in the guest we can make this more specific
0 commit comments