| commit | ba8929b19ec0ec0e89712b7b0cc76161550bc539 | [log] [tgz] |
|---|---|---|
| author | Jaewan Kim <jaewan@google.com> | Fri Jan 13 11:13:29 2023 +0900 |
| committer | Jaewan Kim <jaewan@google.com> | Wed Feb 01 13:00:04 2023 +0900 |
| tree | e964244e030b350f22c4ede9aefa272e6b56ffe0 | |
| parent | f27528641184f4805d9bd7705187d8d0f871baa6 [diff] |
Disable ramdump with debug policy
This CL disables ramdump if debug policy doesn't explicitly
enables ramdump via ramdump prop in the /avf/guest/common node.
The virtualization service always provides crashkernel=17M via
kernel command, so this CL removes crashkernel=17MB in the
microdroid's bootargs in the /chosen node.
Here's the test result on my machine with MicrodroidTestApp.
- Before the CL (or this CL + ramdump is enabled)
$ adb shell /proc/meminfo
MemTotal: 212968 kB
MemFree: 138336 kB
MemAvailable: 171980 kB
- With this CL + ramdump is disabled
$ adb shell /proc/meminfo
MemTotal: 230372 kB
MemFree: 165240 kB
MemAvailable: 192648 kB
Bug: 243630590
Test: Boot microdroid with following AVF debug policies \
- AVF debug policy exists, and ramdump=<1> \
- AVF debug policy exists, and ramdump=<0> \
- No AVF debug policy
Change-Id: Ia486448b5513c2d5662a4f16ddb3334b20913329
This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.