| commit | 8937cb8cb1e8f90becd64e2d2086fe4a608d3cb2 | [log] [tgz] |
|---|---|---|
| author | Pierre-Clément Tosi <ptosi@google.com> | Thu Jul 06 15:07:38 2023 +0000 |
| committer | Pierre-Clément Tosi <ptosi@google.com> | Fri Jul 07 10:39:21 2023 +0000 |
| tree | 745018465441f179e4f2f3a0dc3d375f85306cc1 | |
| parent | 2c0724413b9c610d5b8012372ca3b073af0498f1 [diff] |
vmbase: Use heap for non-protected SHARED_POOL
On non-protected platforms, buffers shared with devices (i.e. the host)
may be located on the heap as there are no security constraints given
that the host already has full access to guest memory. As the PCI/VirtIO
drivers expect SHARED_POOL to have been initialized and as the
init_{dynamic,static}_shared_pool() functions aren't appropriate for
non-protected VMs, provide a third method allowing clients to signal
that they want SHARED_POOL to be initialized to simply wrap the heap.
Use this mechanism in Rialto.
Test: atest DebugPolicyHostTests#testNoAdbInDebugPolicy_withDebugLevelNone_boots
Test: atest rialto_test vmbase_example.integration_test
Change-Id: I7098c8dfd3a5f2f447763f5f43ba880f2d8b008f
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.