| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| device/ | 04-Jul-2025 | - | 6,435 | 4,921 | ||
| README.md | D | 04-Jul-2025 | 812 | 28 | 17 | |
| mod.rs | D | 04-Jul-2025 | 4.8 KiB | 140 | 97 | |
| snapshot_extensions.md | D | 04-Jul-2025 | 2.9 KiB | 73 | 55 |
README.md
1# Vhost-user devices 2 3This directory contains the implementation of [vhost-user] devices. 4 5## Code Locations 6 7- [`vmm`](./vmm/) - Implements vhost-user vmm device; i.e. vhost-user frontend. 8- [`device`](./device/) - Implements vhost-user device backend; i.e. vhost-user backend. 9 10## Usage 11 12### Vhost-user 13 14First, start a vhost-user device with the `crosvm devices` command. Here we use the block device as 15an example, but the basic usage is same for all of devices. 16 17```bash 18$ crosvm devices --block vhost=/path/to/socket,path=/path/to/block.img 19``` 20 21Then start a VM with a vhost-user block device by specifying the same socket path. 22 23```bash 24$ crosvm run -r rootfs.img --vhost-user block,socket=/path/to/socket <crosvm arguments> 25``` 26 27[vhost-user]: https://qemu.readthedocs.io/en/latest/interop/vhost-user.html 28