Skip to content

Commit d1962a7

Browse files
committed
Print boot mode at info log level
This commit logs either "Configuring VM for Linux boot." or "Configuring VM for PVH boot." at the "info" log level, in order to make it easier to see which boot mode is being used. Requested by: pb8o Signed-off-by: Colin Percival <cperciva@freebsd.org>
1 parent b25efbc commit d1962a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vmm/src/arch/x86_64/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ use linux_loader::loader::bootparam::boot_params;
2727
use linux_loader::loader::elf::start_info::{
2828
hvm_memmap_table_entry, hvm_modlist_entry, hvm_start_info,
2929
};
30+
use log::info;
3031
use utils::vm_memory::{Address, GuestAddress, GuestMemory, GuestMemoryMmap, GuestMemoryRegion};
3132

3233
use super::BootProtocol;
@@ -130,9 +131,11 @@ pub fn configure_system(
130131

131132
match boot_prot {
132133
BootProtocol::PvhBoot => {
134+
info!("Configuring VM for PVH boot.");
133135
configure_pvh(guest_mem, cmdline_addr, initrd)?;
134136
}
135137
BootProtocol::LinuxBoot => {
138+
info!("Configuring VM for Linux boot.");
136139
configure_64bit_boot(guest_mem, cmdline_addr, cmdline_size, initrd)?;
137140
}
138141
}

0 commit comments

Comments
 (0)