commit | 229dd9d1e2f0b96fe55ecd5246674a9511c34bb1 | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Sat Nov 02 10:34:27 2024 +0000 |
committer | Pierre-Clément Tosi <ptosi@google.com> | Wed Dec 04 21:22:53 2024 +0000 |
tree | 41c89b2431b800b215e03fbc77ca93e46e125ebc | |
parent | b996399efc2a087f21647e88d73401227cc7d0c2 [diff] |
pvmfw: Map image footer after dynamic PT switch Teach the MemoryTracker to map the optional image footer into the dynamic PTs. As vmbase now knows internally where it is located, there is no need to receive the "payload range" from the client anymore. Therefore, refactor MemoryTracker::new() to stop taking that argument. As a result, pvmfw now first switches to the dynamic PTs before requesting the footer to be mapped, which prepares it (along with other vmbase clients) for an upcoming change that will activate the dynamic PTs before it is entered from vmbase. As the MemoryTracker keeps track of whether the footer has been mapped, get_appended_data_slice() can now safely return a Result<&mut> as it will fail if called more than once. Note that the memory tracker uses dirty-bit tracking (flushed when switching back to the static PTs) for the image footer. Bug: 377276983 Test: m {pvmfw,rialto,vmbase_example_{bios,kernel}}_bin Test: atest rialto_test vmbase_example.integration_test Change-Id: I24954b6905db0a0a499f7aa2dedb9a4e5b83d168
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: