Determine CompOS VM size from properties

Rather than hard-wiring the max VM size, use properties to allow ART
to specify how much is needed by the current ART version, and the
hypervisor provider to specify an adjustment to it.

Previously we set the maximum to 1 GiB, in an attempt to allow for
future growth. Instead set the default in the absence of information
from ART to 400 MiB, which is sufficient for current versions with a
small amount of additional headroom.

Bug: 274597466
Test: atest ComposHostTestCases
Test: manual: set bad values, see errors
Change-Id: Ibd98b670c2ee800064f8069b64ffa9fd160b7446
1 file changed
tree: 48b41a3fca2daaffc963589bcd79837827f91fa7
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. compos/
  5. demo/
  6. docs/
  7. encryptedstore/
  8. javalib/
  9. launcher/
  10. libs/
  11. microdroid/
  12. microdroid_manager/
  13. pvmfw/
  14. rialto/
  15. tests/
  16. virtualizationmanager/
  17. virtualizationservice/
  18. vm/
  19. vm_payload/
  20. vmbase/
  21. vmclient/
  22. zipfuse/
  23. .clang-format
  24. .gitignore
  25. Android.bp
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
  29. TEST_MAPPING
README.md

Virtualization

This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.