Skip to content

Fix cargo feature 'dump_on_crash' #81

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

Merged
merged 4 commits into from
Nov 26, 2024
Merged

Conversation

ludfjig
Copy link
Contributor

@ludfjig ludfjig commented Nov 21, 2024

Fixes #70. Renames the feature to just "crashdump". Moves it into VirtualCPU::run, so each driver doesn't need to call it. Behavior should be the same: dumps registers,memory_regions and raw memory to file for certain hyperlightexits: mmio, accessviolation, unknown, and errors.

Also changes uses of crate::debug! macro to explicilty use the crate module prefix to distinguish from the log crate.

@ludfjig ludfjig added the kind/bugfix For PRs that fix bugs label Nov 22, 2024
@ludfjig ludfjig force-pushed the crashdump branch 6 times, most recently from 01523e1 to 9e4a43d Compare November 22, 2024 19:56
@ludfjig ludfjig changed the title Fix cargo feature 'crashdump' Fix cargo feature 'dump_on_crash' Nov 22, 2024
@ludfjig ludfjig marked this pull request as ready for review November 22, 2024 20:55
@ludfjig ludfjig force-pushed the crashdump branch 2 times, most recently from cba49da to 9475fd6 Compare November 25, 2024 20:33
syntactically
syntactically previously approved these changes Nov 25, 2024
Copy link
Member

@syntactically syntactically left a comment

Choose a reason for hiding this comment

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

LGTM except for that one documentation nit.

syntactically
syntactically previously approved these changes Nov 25, 2024
Copy link
Member

@syntactically syntactically left a comment

Choose a reason for hiding this comment

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

LGTM

danbugs
danbugs previously approved these changes Nov 26, 2024
Copy link
Contributor

@danbugs danbugs left a comment

Choose a reason for hiding this comment

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

LGTM!

@ludfjig ludfjig force-pushed the crashdump branch 2 times, most recently from 12e6bda to 91a3294 Compare November 26, 2024 17:15
…ve logic to its own module

Signed-off-by: Ludvig Liljenberg <[email protected]>
… log::debug, and alias feature with debug_assertions

Signed-off-by: Ludvig Liljenberg <[email protected]>
@ludfjig ludfjig merged commit 5176529 into hyperlight-dev:main Nov 26, 2024
23 checks passed
@ludfjig ludfjig deleted the crashdump branch November 26, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bugfix For PRs that fix bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hyperlight-host feature dump_on_crash doesn't compile
3 participants