Recognise more death reasons in vm tool.
Test: m vm
Change-Id: Ia8cecdf1eeab14e0996a8ba0853530f5d2fd546c
diff --git a/vm/src/run.rs b/vm/src/run.rs
index 3d3d703..2886b87 100644
--- a/vm/src/run.rs
+++ b/vm/src/run.rs
@@ -306,6 +306,18 @@
DeathReason::ERROR => println!("Error starting VM."),
DeathReason::REBOOT => println!("VM tried to reboot, possibly due to a kernel panic."),
DeathReason::CRASH => println!("VM crashed."),
+ DeathReason::PVM_FIRMWARE_PUBLIC_KEY_MISMATCH => println!(
+ "pVM firmware failed to verify the VM because the public key doesn't match."
+ ),
+ DeathReason::PVM_FIRMWARE_INSTANCE_IMAGE_CHANGED => {
+ println!("pVM firmware failed to verify the VM because the instance image changed.")
+ }
+ DeathReason::BOOTLOADER_PUBLIC_KEY_MISMATCH => {
+ println!("Bootloader failed to verify the VM because the public key doesn't match.")
+ }
+ DeathReason::BOOTLOADER_INSTANCE_IMAGE_CHANGED => {
+ println!("Bootloader failed to verify the VM because the instance image changed.")
+ }
_ => println!("VM died for an unrecognised reason."),
}
Ok(())