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