Re: [virtio-dev] Dynamic assignment of vhost-user to a VM

From
Paolo Bonzini <>
Date
2018-04-09T09:42:54+00:00
ID
Thread
Re: [virtio-dev] Dynamic assignment of vhost-user to a VM
On 09/04/2018 08:33, Avi Cohen (A) wrote:
> Hello All,
> Is it  possible to assign a vhost-user frontend to a VM *after* the VM was launched ?
> Best Regards
> Avi

If you're referring to QEMU then yes, you can dynamically create all of
character devices (to connect to the vhost-user server), network devices
(to create a vhost-user client) and NICs (that peer with the vhost-user
server).

If you're using libvirt to run QEMU, you can in fact invoke a single
"virsh attach-device" command to handle all three steps.

Thanks,

Paolo