Make VM Descriptor AutoCloseable

I also close it implicitly on import - which seems natural, since we
do in fact close the PFDs as part of the import, so no further use can
be made of the descriptor.

Also disallow parcelling or importing once closed.

Add some related tests. (And, while I'm here, update the test
annotations - most of our tests aren't really checking that we can run
all available OSs in the VM.)

Bug: 268613460
Test: atest MicrodroidTests
Change-Id: I0558e4d0357faa5d113e6e1c2b2f8e59ea82c784
5 files changed
tree: 5e33988fbf2014daef75f58dc2e5883f7cc95e06
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. avmd/
  5. compos/
  6. demo/
  7. docs/
  8. encryptedstore/
  9. javalib/
  10. launcher/
  11. libs/
  12. microdroid/
  13. microdroid_manager/
  14. pvmfw/
  15. rialto/
  16. tests/
  17. virtualizationmanager/
  18. virtualizationservice/
  19. vm/
  20. vm_payload/
  21. vmbase/
  22. vmclient/
  23. zipfuse/
  24. .clang-format
  25. .gitignore
  26. Android.bp
  27. OWNERS
  28. PREUPLOAD.cfg
  29. README.md
  30. 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.