-
Notifications
You must be signed in to change notification settings - Fork 8
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
boot-qemu: Always use -no-reboot #65
Conversation
To make things easier for shutting down after a reboot (or a reboot on panic), always use -no-reboot regardless of architecture. Signed-off-by: Kees Cook <[email protected]>
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.
This looks reasonable from what I've read about -no-reboot
and -no-shutdown
but I'll let someone who uses this on the daily merge the PR.
Hmmm, we might want to rethink doing this unconditionally, as I think it will cause us to miss out on timeouts for certain crashes.
|
But why didn't the running notice it never reached userspace? |
Because QEMU exited cleanly, which seems expected to me in that case with |
What about matching the log against some string that you print within QEMU at the end of the run (and checking it is there only once)? Poor man's solution, but it may be a good idea and can be done in addition to another approach too. We did something like that for tests etc. |
Thanks for the suggestion, I have gone ahead and filed #96 to further discuss that. |
To make things easier for shutting down after a reboot (or a reboot on
panic), always use -no-reboot regardless of architecture.
Signed-off-by: Kees Cook [email protected]