Synchronize VM callbacks

Both the callback and the executor are needed to invoke a callback so
read and update them atomically. This avoids the possibility of the
callback being called on the wrong executor.

Also make sure that onDied() is only called once for a VM by
synchronizing the possible death sources.

Fix: 220730550
Test: atest MicrodroidTests
Change-Id: I434ea70cc90f1df9a23c8518798ef26fe0adf9e7
1 file changed
tree: 8f857fb956404884947fc0e11695cf3f80fa9aab
  1. .prebuilt_info/
  2. apex/
  3. apkdmverity/
  4. authfs/
  5. compos/
  6. demo/
  7. docs/
  8. javalib/
  9. launcher/
  10. libs/
  11. microdroid/
  12. microdroid_manager/
  13. pvmfw/
  14. tests/
  15. virtualizationservice/
  16. vm/
  17. zipfuse/
  18. .clang-format
  19. .gitignore
  20. Android.bp
  21. OWNERS
  22. PREUPLOAD.cfg
  23. README.md
  24. 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.