diff options
author | Si-Wei Liu | 2022-10-08 09:58:58 +0200 |
---|---|---|
committer | Jason Wang | 2022-10-28 07:28:52 +0200 |
commit | 8801ccd0500437a86e3d15a806f37ebb84605dce (patch) | |
tree | e8af6b1fe75b2bc515ac35aeec043f3654ffc9a2 /qapi | |
parent | vdpa: Remove shadow CVQ command check (diff) | |
download | qemu-8801ccd0500437a86e3d15a806f37ebb84605dce.tar.gz qemu-8801ccd0500437a86e3d15a806f37ebb84605dce.tar.xz qemu-8801ccd0500437a86e3d15a806f37ebb84605dce.zip |
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>
Diffstat (limited to 'qapi')
-rw-r--r-- | qapi/net.json | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qapi/net.json b/qapi/net.json index dd088c09c5..926ecc8cca 100644 --- a/qapi/net.json +++ b/qapi/net.json @@ -442,6 +442,8 @@ # @vhostdev: path of vhost-vdpa device # (default:'/dev/vhost-vdpa-0') # +# @vhostfd: file descriptor of an already opened vhost vdpa device +# # @queues: number of queues to be created for multiqueue vhost-vdpa # (default: 1) # @@ -456,6 +458,7 @@ { 'struct': 'NetdevVhostVDPAOptions', 'data': { '*vhostdev': 'str', + '*vhostfd': 'str', '*queues': 'int', '*x-svq': {'type': 'bool', 'features' : [ 'unstable'] } } } |