Skip to content

Commit

Permalink
Merge pull request #596 from msft-jlange/region_info
Browse files Browse the repository at this point in the history
stage2: print SVSM region in hex
  • Loading branch information
joergroedel authored Jan 22, 2025
2 parents 286ac39 + 85cc0aa commit 698fe88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/src/stage2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,11 @@ pub extern "C" fn stage2_main(launch_info: &Stage2LaunchInfo) {
.find_kernel_region()
.expect("Failed to find memory region for SVSM kernel");

log::info!("SVSM memory region: {kernel_region:?}");
log::info!(
"SVSM memory region: start={:#018x}, end={:#018x}",
u64::from(kernel_region.start()),
u64::from(kernel_region.end())
);

init_valid_bitmap_alloc(kernel_region).expect("Failed to allocate valid-bitmap");

Expand Down

0 comments on commit 698fe88

Please sign in to comment.