virtualizationservice: Add crashkernel=17M when launching VM
Microdroid kernel would not have crashkernel=17M by default,
so add it back for making kdump happy.
Bug: 243630590
Test: &&
- `adb shell cat /proc/cmdline` still have crashkernel=17M &&
with custom microdroid kernel without crashkernel=17M.
- `adb shell cat /proc/meminfo` remains same regardless of &&
crashkernel=17M in microdroid kernel.
Change-Id: Ic36f1116288af51ee9068835004f381ba0608e0f
diff --git a/virtualizationservice/src/crosvm.rs b/virtualizationservice/src/crosvm.rs
index 6f646b7..1b8061e 100644
--- a/virtualizationservice/src/crosvm.rs
+++ b/virtualizationservice/src/crosvm.rs
@@ -546,6 +546,7 @@
debug!("Preserving FDs {:?}", preserved_fds);
command.preserved_fds(preserved_fds);
+ command.arg("--params").arg("crashkernel=17M");
print_crosvm_args(&command);
let result = SharedChild::spawn(&mut command)?;