commit | c23426b9d7cb4e5a405bace9410487b2c8ae4f70 | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Mon Apr 10 17:32:27 2023 +0900 |
committer | Jiyong Park <jiyong@google.com> | Tue Apr 11 00:51:54 2023 +0900 |
tree | 41d6e2d333092525c6526f2fe9b43822486db27d | |
parent | 1511c643d723a9b966bf4e5afb6ba7df9394de87 [diff] |
pvmfw: debug policy application failure is recoverable If pvmfw fails to apply the debug policy, the original fdt is recovered from the backup. In this change also moves apply_debug_policy into modify_for_next_stage, so that modification to the fdt after the verification is done in one place. Finally, error codes that are specific to debug policy are replaced with the original errors from libfdt because the former don't give much detail information than the other. Bug: 275132866 Bug: 275306568 Test: forcibly modify a bit in debug_policy inside pvmfw and see if the VM boots (without applying it). Flashing an invalid debug_policy was not an option for the test because then ABL would reject it and doesn't pass it to pvmfw at all. Change-Id: I1c40967087449deb89a9698a87109fc16e588b70
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.