commit | eb887ac7b18e01926b9160eb0fde18913d838227 | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Tue May 02 13:33:37 2023 +0000 |
committer | Pierre-Clément Tosi <ptosi@google.com> | Tue May 02 17:38:14 2023 +0000 |
tree | 91690e0a5a7eab3fa26edf242910c15c205f4862 | |
parent | a50167bc606a67ba422c0bf02f06c865d0b5bd3e [diff] |
pvmfw: apply_debug_policy: Backup DT before unpacking As the DT needs to be backed-up before applying the overlay due to fdt_apply_overlay corrupting its inputs on failure, do so before unpacking it, reducing the amount of memory needed by the backup Vec from the maximum size that the DT could occupy (here, 2MiB) to the actual size that the DT has (here, a few KiB). Note: This wasn't detected previously due to a bug in Fdt::header() causing fdt.as_slice() == &[] but will be required once the bug is fixed as pvmfw's HEAP can't hold a 2MiB slice. Test: atest MicrodroidHostTests Change-Id: Ic6e651a73c4fb97e4bf97c32edc0b327b6cd1def
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.