Make libvsock available to the virt APEX

The library is used by virtualizationservice

Bug: 192904048
Test: m com.android.virt
Change-Id: Ifadc3319d1c8ce736b406faca3ba7d5491684b4d
2 files changed
tree: 5652e8ca213409985e2d1bc9ac57e7931cb87f98
  1. .cargo/
  2. .github/
  3. src/
  4. tests/
  5. .cargo_vcs_info.json
  6. .gitignore
  7. Android.bp
  8. Cargo.toml
  9. Cargo.toml.orig
  10. cargo2android.json
  11. LICENSE
  12. Makefile
  13. METADATA
  14. MODULE_LICENSE_APACHE2
  15. OWNERS
  16. README.android
  17. README.md
README.md

vsock-rs

Virtio socket support for Rust. Implements VsockListener and VsockStream which are analogous to the std::net::TcpListener and std::net::TcpStream types.

Usage

Refer to the crate documentation.

Testing

Prerequisites

You will need a recent qemu-system-x86_64 build in your path.

Host

Setup the required virtio kernel modules:

make kmod

Start the test vm, you can shutdown the vm with the keyboard shortcut Ctrl+A and then x:

make vm

Tests

Run the test suite with:

make check