commit | df6bacc21fb357d701da06c404f46096a337c3bc | [log] [tgz] |
---|---|---|
author | Alice Wang <aliceywang@google.com> | Mon Jul 17 14:30:57 2023 +0000 |
committer | Alice Wang <aliceywang@google.com> | Tue Jul 18 08:04:59 2023 +0000 |
tree | cb32ea92e4608c25d6501b76296fc4d830146c7e | |
parent | 56faaefe8f917c118d4bb56aa27b3e53534730ba [diff] |
[vmbase] Adjust refill layout size in memory allocation This cl adjusts the refill layout size to the next power of two when allocating memory. This is necessary because the actual size of the memory allocated in the subsequent call `alloc_aligned` is the max of the next power of two and the alignment. This is clear based on the implementation of `alloc_aligned` but is not mentioned in its documentation[1]. Without this adjustment, the `alloc_aligned` call will fail if given a layout whose size is not a power of two. [1] https://docs.rs/buddy_system_allocator/latest/buddy_system_allocator/struct.FrameAllocator.html#method.alloc_aligned Bug: 274441673 Test: atest MicrodroidTests Change-Id: I37d7a2805aa6788d22c2cd5bfc8c701fad1f007d
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:
How-Tos: