Don't print output on the binder thread

So far, the vm tool has been printing the output from the VM on the
binder thread executing the callback. This prevented it from receiving
other callback events from the virtualization service before the console
output is closed.

Fixing this by spawning a new thread and outputting there.

Bug: N/A
Test: run microdroid using the vm tool, do a force crash using `echo c >
/proc/sysrq-trigger`. The `vm` tool exits in a finite amount of time.
(previously it kept saying "error reading from virtual machine:
Connection reset by peer (os error 104)")

Change-Id: I043fd051198f1a923f98b868cd7d3480c21677ee
1 file changed
tree: cce80f2fd036eb1e5afd9d515a8f41e90642ddea
  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.