Increase CompOS vm_max_time_to_ready timeout to match virtmgr Under heavy post-boot CPU and disk I/O contention on physical devices (such as right after device flash/setup and host odrefresh compilation in ComposHostTestCases), booting the CompOS Microdroid pVM and starting its payload can take slightly over 15 seconds (e.g. 15,129 ms on Pixel 8), causing ComposClient::start to fail with "Timed out waiting for VM." Increase vm_max_time_to_ready from 15 * multiplier to 60 * multiplier to match virtmgr's BOOT_HANGUP_TIMEOUT (60 * multiplier). Since wait_until_ready wakes up as soon as the VM signals PayloadReady, this does not add latency on normal boots while preventing premature timeouts under load while virtmgr still considers the VM healthy. Leave a TODO (b/567192843) to revisit separating PayloadState::Started and PayloadState::Ready timeouts in libvmclient. Bug: 562725529 Bug: 567192843 Test: atest ComposHostTestCases (3x5 iterations on shiba: http://go/forrest-run/L92500030192527449, http://ab/I57800010632278712) Flag: EXEMPT BUGFIX Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:816aaff17de91254121d5e60e59f2dc57315b9ec Merged-In: I0a213d4ab69d25a531dbc92a9b6332493bfbfee1 Change-Id: I0a213d4ab69d25a531dbc92a9b6332493bfbfee1
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: