libhyp: Detect non-protected through MMIO_GUARD

To distinguish between protected and non-protected, we issue a MEM_SHARE
HVC assuming that it is only supported in pVMs. This works for Android
kernels based on 5.10 but breaks in 5.15 and 6.1 because the kernel now
supports the HVC, even for non-protected VMs. Instead, rely on a similar
HVC for MMIO_GUARD, assumed to never be supported for non-protected VMs.

Bug: 290380929
Test: atest rialto_test  # On a device running 5.15
Change-Id: Ia4dc9e72025a34cbc4edfdf3f0acd4e78f3f3bd0
1 file changed
tree: 4796cb8b4d0d019d8bae41a588585b6f46a34316
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. compos/
  5. demo/
  6. demo_native/
  7. docs/
  8. encryptedstore/
  9. javalib/
  10. launcher/
  11. libs/
  12. microdroid/
  13. microdroid_manager/
  14. pvmfw/
  15. rialto/
  16. service_vm/
  17. tests/
  18. virtualizationmanager/
  19. virtualizationservice/
  20. vm/
  21. vm_payload/
  22. vmbase/
  23. vmclient/
  24. zipfuse/
  25. .clang-format
  26. .gitignore
  27. Android.bp
  28. OWNERS
  29. PREUPLOAD.cfg
  30. README.md
  31. TEST_MAPPING
README.md

Android Virtualization Framework (AVF)

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: