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
This commit is contained in:
Jaewan Kim 2022-11-14 13:21:40 +09:00
parent b0c31f2f06
commit b281406ce6
1 changed files with 1 additions and 0 deletions

View File

@ -546,6 +546,7 @@ fn run_vm(
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)?;