commit | ae625b6b15ce3ed130eadd595c23130e56a8869d | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Thu Jun 13 21:47:52 2024 +0900 |
committer | Jiyong Park <jiyong@google.com> | Thu Jun 13 21:47:52 2024 +0900 |
tree | c577f7e35abdaee314237310ee353dfa912636e9 | |
parent | 03b3347b12177a9284f92f1d4281f6863df490eb [diff] |
Add sizeof(swiotlb) to the mem size of pKVM pVMs Previously (and even with this change), under pKVM, protected VMs reserve some amount of memory as swiotlb. It is to share buffers for virtio devices with the host safely. See [1] for more detail. This however meant protected VMs, when compared to non-protected VMs, got "effectively" smaller amount of RAM available. For VMs running Microdroid, the swiotlb size is current 14 MB. This CL fixes such an inconsistent experience across protected and non-protected VMs. To counter balance the reserved memory for swiotlb, this CL adds sizeof(swiotlb) (i.e. 14 MB currently) to protected VMs running under pKVM. Other hypervisors (GenieZone and Gunyah) don't need this treatment because they statically allocate swiotlb outside of guest RAM. Bug: 346770542 Test: watch our benchmark [1] https://source.android.com/docs/core/virtualization/architecture#virtio Change-Id: I82eb8796b248d4f6a189824841c245186cea2075
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: