• Home
Name Date Size #Lines LOC

..--

.cargo/06-Sep-2024-22

.github/06-Sep-2024-9776

src/06-Sep-2024-386290

tests/06-Sep-2024-10362

.cargo_vcs_info.jsonD06-Sep-202494 66

.gitignoreD06-Sep-202454 65

Android.bpD06-Sep-20241 KiB4339

Cargo.tomlD06-Sep-20241,007 4236

Cargo.toml.origD06-Sep-2024465 2017

LICENSED06-Sep-202411.1 KiB202169

METADATAD06-Sep-2024583 2119

MODULE_LICENSE_APACHE2D06-Sep-20240

MakefileD06-Sep-20242.4 KiB7339

OWNERSD06-Sep-202440 21

README.mdD06-Sep-2024575 3722

TEST_MAPPINGD06-Sep-2024260 1211

cargo_embargo.jsonD06-Sep-2024134 98

README.md

1# vsock-rs
2
3Virtio socket support for Rust. Implements VsockListener and VsockStream
4which are analogous to the `std::net::TcpListener` and `std::net::TcpStream` types.
5
6## Usage
7
8Refer to the crate [documentation](https://docs.rs/vsock).
9
10## Testing
11
12### Prerequisites
13
14You will need a recent `qemu-system-x86_64` build in your path.
15
16### Host
17
18Setup the required virtio kernel modules:
19
20```
21make kmod
22```
23
24Start the test vm, you can shutdown the vm with the keyboard shortcut `Ctrl+A` and then `x`:
25
26```
27make vm
28```
29
30### Tests
31
32Run the test suite with:
33
34```
35make check
36```
37