mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
This implements a generic vhost-user device. All information about this device must be provided to Cloud Hypervisor via the command-line or API. The main use-case is types of vhost-user devices Cloud Hypervisor doesn't know about, but it can also be used for types it does know about. The generic device delegates all configuration space handling to the backend. This means that the vhost-user backend must support configuration space access. It also means that the backend has control of configuration space. For instance, this means that setting the tag of a virtio-fs device on the virtiofsd command line works as expected. If the VM is snapshotted or migrated, the backend must write the configuration space to a separate save file or migration stream. Similarly, if the VM is restored or migrated, the backend must read the configuration space from a separate save file or migration stream. Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>