Commit 81af612
committed
Gate crashdump helpers on the crashdump cfg-alias
Four crashdump-only items in mem::mgr (the BasicMapping/MappingKind
import, mapping_kind_to_flags, try_coalesce_region and
get_guest_memory_regions) were gated on the raw `crashdump` feature
rather than the `crashdump` cfg-alias from build.rs
(all(feature = "crashdump", target_arch = "x86_64")). They reference
CrashDumpRegion/MemoryRegionFlags/MemoryRegionType, which are imported
under #[cfg(crashdump)], so enabling the feature on a non-x86_64 target
would compile the code without the types and fail to build. Switch them
to #[cfg(crashdump)] for consistency with the rest of the crashdump
codepath.
Addresses Copilot review feedback on hyperlight-dev#1525.
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>1 parent aba172e commit 81af612
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
| 584 | + | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| |||
0 commit comments