commit | b5a3ab1953ab05d825e817df8e3ed65d77219859 | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Fri Sep 15 11:18:38 2023 +0100 |
committer | Pierre-Clément Tosi <ptosi@google.com> | Mon Jul 08 14:27:05 2024 +0100 |
tree | 3bcdf50d3103b76be67c99eed3949f5a73c46e68 | |
parent | 075aade185cf6a3d45d0ab12c038336a10419936 [diff] |
pvmfw: Print RebootReason on secondary UART When rebooting due to a business logic error, print the reason as a formatted string to a dedicated UART, in the same way Microdroid does it on its /dev/tty1, to provide the host with extra information about the reason for the pVM rebooting. Since aosp/2646391, all the pvmfw code runs with the UART properly initialized, which greatly simplifies printing of the reboot reason as start() can now assume that the secondary UART is also ready to be used. This CL was verified through the logs of virtualizationmanager e.g. in MicrodroidHostTests#protectedVmWithImageSignedWithDifferentKeyRunsPvmfw: virtmgr : virtualizationmanager::crosvm: VM returned failure reason 'PVM_FIRMWARE_PAYLOAD_VERIFICATION_FAILED' Note that the host still has to be taught about the new PVM_FIRMWARE_*. Bug: 300636104 Test: atest MicrodroidHostTestCases Change-Id: I5d382be9dae02da7e463193400dfa0474ca5e378
Android Virtualization Framework (AVF) provides secure and private execution environments for executing code. AVF is ideal for security-oriented use cases that require stronger isolation assurances over those offered by Android’s app sandbox.
Visit our public doc site to learn more about what AVF is, what it is for, and how it is structured. This repository contains source code for userspace components of AVF.
If you want a quick start, see the getting started guideline and follow the steps there.
For in-depth explanations about individual topics and components, visit the following links.
AVF components:
AVF APIs:
How-Tos: