how to use vhost-user-vsock

Michal Prívozník mprivozn at redhat.com
Tue Nov 23 08:21:29 UTC 2021


On 11/16/21 14:54, Jiatong Shen wrote:
> Hello community,
> 
>   I am looking for a way to configure vhost-user-vsock using libvirt,
> but looks like it is not written in doc. How can I use vhost-user-vsock
> using libvirt? Thank you.
> 

Libvirt has basic support for vsock:

https://libvirt.org/formatdomain.html#vsock

For instance the following:

    <vsock model='virtio'>
      <cid auto='no' address='4'/>
    </vsock>


will get you:

-device
'{"driver":"vhost-vsock-pci","id":"vsock0","guest-cid":4,"vhostfd":"6789","bus":"pci.0","addr":"0x7"}'

But, I don't think we have vhost-*user*-vsock implemented yet.

Michal




More information about the libvirt-users mailing list