commit | afdd73c0ccc70caf20ead0a2116950007fb4c15e | [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 09 13:28:47 2023 +0000 |
tree | 041db72ea63fc48c4f0092723509ef3de5f30faf | |
parent | dec58e9aaf2552e7c47f864fa8e71a0e49a53ce1 [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!. Bug: 280425124 Test: atest MicrodroidHostTests Change-Id: Ib5979b07c7978edd94dd90537faefebd25620b19 Merged-In: 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.