Don't forward console_in to both /dev/ttyS0 and /dev/hvc0

Previously, console_in was forwarded to both /dev/ttyS0 and /dev/hvc0.
This was wrong because data typed into console_in was sometimes consumed
by /dev/ttyS0, and sometimes by /dev/hvc0. This was non-deterministic
and also has caused test flakiness.

Fixing this by not sending the stream to /dev/ttyS0 which is for early
kernel outputs before virtio-console driver is loaded. We don't need the
serial device to be bi-directional.

Bug: 289732678
Test: run MicrodroidTestApp multiple times
Test: run Microdroid, type in something. check /dev/ttyS0 in the
Microdroid; it shows nothing. (Previously, it showed some partial
characters typed in.)

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