]> www.infradead.org Git - qemu-nvme.git/commit
vhost-vdpa: allow passing opened vhostfd to vhost-vdpa
authorSi-Wei Liu <si-wei.liu@oracle.com>
Sat, 8 Oct 2022 07:58:58 +0000 (00:58 -0700)
committerJason Wang <jasowang@redhat.com>
Fri, 28 Oct 2022 05:28:52 +0000 (13:28 +0800)
commit8801ccd0500437a86e3d15a806f37ebb84605dce
treee8af6b1fe75b2bc515ac35aeec043f3654ffc9a2
parent6ce262fbe7744a3d82d872e232fd0d39cfba0363
vhost-vdpa: allow passing opened vhostfd to vhost-vdpa

Similar to other vhost backends, vhostfd can be passed to vhost-vdpa
backend as another parameter to instantiate vhost-vdpa net client.
This would benefit the use case where only open file descriptors, as
opposed to raw vhost-vdpa device paths, are accessible from the QEMU
process.

(qemu) netdev_add type=vhost-vdpa,vhostfd=61,id=vhost-vdpa1

Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/vhost-vdpa.c
qapi/net.json
qemu-options.hx