commit | d330548e21689187dba928c95047ded71f61a3fc | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Thu Jun 29 15:03:48 2023 +0000 |
committer | Pierre-Clément Tosi <ptosi@google.com> | Fri Jul 07 10:45:28 2023 +0000 |
tree | d18380f12dc30e1f7be11a1cb090ef172440fc74 | |
parent | 910a72d8e6d20fb263d2978a5861fe636f65f16f [diff] |
vmbase: Initialize logger before calling main() By setting up the console (MMIO_GUARD_MAP-ing it if necessary) and initializing the logger before entering main, we can centralize the early error handling instead of expecting clients to deal with it, provide a standard interface for configuring the log level (relying on the log crate) which can't fail, and simplify client code. This will enable vmbase itself to log errors in future changes. Test: atest DebugPolicyHostTests#testNoAdbInDebugPolicy_withDebugLevelNone_boots Test: atest rialto_test vmbase_example.integration_test Change-Id: Id8c7256555d7940174c9f9375435d71851302020
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.