diff mbox series

[RFC,2/7] qapi: support iommufd in vdpa

Message ID 20230503091337.2130631-3-lulu@redhat.com (mailing list archive)
State New, archived
Headers show
Series vhost-vdpa: add support for iommufd | expand

Commit Message

Cindy Lu May 3, 2023, 9:13 a.m. UTC
Add a new option for iommufd, The usage is
....
-object iommufd,id=iommufd0 \
-device virtio-net-pci,netdev=vhost-vdpa1,disable-legacy=on,disable-modern=off\
-netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-0,id=vhost-vdpa1,iommufd=iommufd0\
...

Signed-off-by: Cindy Lu <lulu@redhat.com>
---
 qapi/net.json | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/qapi/net.json b/qapi/net.json
index 522ac582ed..fffaf9bb5e 100644
--- a/qapi/net.json
+++ b/qapi/net.json
@@ -461,6 +461,7 @@ 
     '*vhostdev':     'str',
     '*vhostfd':      'str',
     '*queues':       'int',
+    '*iommufd':       'str',
     '*x-svq':        {'type': 'bool', 'features' : [ 'unstable'] } } }
 
 ##