commit | 147addfce62850bbdcec9131bcd8bb311e936d50 | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Mon Apr 15 15:07:58 2024 +0100 |
committer | Pierre-Clément Tosi <ptosi@google.com> | Tue Apr 16 13:41:18 2024 +0100 |
tree | e389d2b15ac11538249ebdc7456472d6a2a74195 | |
parent | ec8fd19bd1c543e75c4765fe6f2ba462f408b608 [diff] |
pvmfw: Unify Config::new() calls into a single one We currently parse the config data twice as a safe way to bypass a bug in the Rust borrow checker which was causing the 2 mutable borrows of data to be seen as overlapping (when they don't). However, this causes unnecessary work and, perhaps more importantly, creates duplicate logs. Instead, implement the match in the most straightforward way (as originally desired in aosp/2345203) with a Ok/Err match and avoid the BC getting confused by carrying data into the "Err" branch by temporarily removing any ownership information from it (unsafe but clear). Test: m pvmfw && TH Change-Id: I170e6b565266df7f0ed43c41ce1f397f089c03bd
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: