• Home
Name Date Size #Lines LOC

..--

device/06-Sep-2024-6,3874,915

README.mdD06-Sep-2024812 2817

mod.rsD06-Sep-20244.8 KiB14097

snapshot_extensions.mdD06-Sep-20243.8 KiB12276

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