tree: 5642993f3e1f06c8e5db004bebc02c89a03282e0 [path history] [tgz]
  1. device/
  2. mod.rs
  3. README.md
  4. snapshot_extensions.md
devices/src/virtio/vhost/user/README.md

Vhost-user devices

This directory contains the implementation of vhost-user devices.

Code Locations

  • vmm - Implements vhost-user vmm device; i.e. vhost-user frontend.
  • device - Implements vhost-user device backend; i.e. vhost-user backend.

Usage

Vhost-user

First, start a vhost-user device with the crosvm devices command. Here we use the block device as an example, but the basic usage is same for all of devices.

$ crosvm devices --block vhost=/path/to/socket,path=/path/to/block.img

Then start a VM with a vhost-user block device by specifying the same socket path.

$ crosvm run -r rootfs.img --vhost-user block,socket=/path/to/socket <crosvm arguments>