Commit f2d5440
Add crashdump example and include snapshot/scratch in core dumps (#1264)
* Include snapshot and scratch regions in crash dumps
Co-authored-by: Doru Blânzeanu <dblnz@pm.me>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
* Add sentinel page for clean GDB backtraces
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
* Tighten runtime config plumbing for crash dumps
The runtime config was passed by reference into set_up_hypervisor_partition then
immediately cloned, but no caller needs it afterward so it is now passed by
value. The entry point field uses Option<u64> instead of a bare zero default so
a missing value is detectable rather than silently producing a bogus AT_ENTRY.
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
* Add explicit dump directory API for crash dumps
generate_crashdump_to_dir accepts the output directory
as a parameter instead of requiring callers to set the
HYPERLIGHT_CORE_DUMP_DIR environment variable. This
removes the need for unsafe std::env::set_var in tests
while preserving the existing env-var fallback path
for the automatic dump and the no-argument generate_crashdump method.
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
* fixup! Include snapshot and scratch regions in crash dumps
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
* fixup! Add sentinel page for clean GDB backtraces
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
* fixup! Include snapshot and scratch regions in crash dumps
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
* fixup! Add sentinel page for clean GDB backtraces
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
---------
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Co-authored-by: Doru Blânzeanu <dblnz@pm.me>1 parent 0dbbce5 commit f2d5440
File tree
14 files changed
+1046
-50
lines changed- docs
- src
- hyperlight_guest_bin/src/arch/amd64
- hyperlight_host
- examples/crashdump
- src
- hypervisor
- mem
- sandbox
14 files changed
+1046
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| |||
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
| 357 | + | |
356 | 358 | | |
357 | 359 | | |
358 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
267 | 309 | | |
268 | 310 | | |
269 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| 72 | + | |
70 | 73 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
160 | 168 | | |
161 | 169 | | |
162 | 170 | | |
| 171 | + | |
| 172 | + | |
163 | 173 | | |
| 174 | + | |
164 | 175 | | |
165 | 176 | | |
| 177 | + | |
166 | 178 | | |
0 commit comments