vsock_test: Wait for ACK from server

vsock_test has been flaky - the test in host would receive ECONNRESET
when reading from the client's vsock socket. This was due to the guest
exiting immediately after writing to the socket. This in turn terminated
crosvm, including the vhost-vsock backend, and reset the socket.

Fix this by having the guest wait for a reply from the host before
shutting down and explicitly shutting down the connection.

Bug: 238733740
Test: atest VirtualizationTestCases.64
Change-Id: I36c678f469fc3269902f5d8b1eb73cd431661ae6
2 files changed
tree: a408e3916d05eff3d36039d7edd750b61b2eb9b7
  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. rialto/
  15. tests/
  16. virtualizationservice/
  17. vm/
  18. vmbase/
  19. vmclient/
  20. zipfuse/
  21. .clang-format
  22. .gitignore
  23. Android.bp
  24. OWNERS
  25. PREUPLOAD.cfg
  26. README.md
  27. 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.