Clean up instance tracking

We used to hold a Weak<CompOsInstance>, so that we could allow clients
to retrieve the current running instance. But we haven't supported
that since commit 616f822f8a4186f9d29edc6a75cf9d31350ecc7d, and it
confuses the ownership semantics.

We still need to track whether an instance is running, but we can do
that via a separate Arc<()> that is kept alive by the instance.

Bug: 236581575
Test: compos_cmd test-compile
Test: Try to start a second instance, observe failure
Change-Id: Id02a831b249f6432b22741dbf5a5dc3919c3df03
3 files changed
tree: 934baa37fa0fa871459764d3855b9b0a241844c7
  1. .prebuilt_info/
  2. apex/
  3. apkdmverity/
  4. authfs/
  5. avmd/
  6. compos/
  7. demo/
  8. docs/
  9. javalib/
  10. launcher/
  11. libs/
  12. microdroid/
  13. microdroid_manager/
  14. pvmfw/
  15. rialto/
  16. tests/
  17. virtualizationservice/
  18. vm/
  19. vmbase/
  20. vmclient/
  21. zipfuse/
  22. .clang-format
  23. .gitignore
  24. Android.bp
  25. OWNERS
  26. PREUPLOAD.cfg
  27. README.md
  28. 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.