commit | a50167bc606a67ba422c0bf02f06c865d0b5bd3e | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Tue May 02 13:19:29 2023 +0000 |
committer | Pierre-Clément Tosi <ptosi@google.com> | Tue May 02 17:09:27 2023 +0000 |
tree | dad6a987027d97a1287d2481f6f89d298883519e | |
parent | 88564470f672a2a78d6eb391d5538ba84858f942 [diff] |
pvmfw: apply_debug_policy: Improve failure path As the function already makes an internal backup of the debug_policy, turn the parameter into a shareable reference and pass the backup to fdt_apply_overlay instead of the original DTBO. This removes the need to do any work to restore the overlay on failure. Avoid confusing logs such as [ERROR] Failed to apply debug policy: The requested node or property does not exist. Recovering... [INFO] Debug policy applied. by returning a bool letting the caller know if DP was properly applied. Report failure to apply DP as warnings instead of info! or error!. Test: atest MicrodroidHostTests Change-Id: Ib5979b07c7978edd94dd90537faefebd25620b19
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.