diff options
| author | Eric Auger <eric.auger@redhat.com> | 2023-11-21 16:44:09 +0800 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2023-12-19 19:03:38 +0100 |
| commit | ee42b261b0a2e465ae003ddcaf1caf117c201f74 (patch) | |
| tree | c1808294cbfec7f755f79bf44b2969c71f86bbce /hw/vfio/helpers.c | |
| parent | 96d6f85ff012abd7aaa35b1a2bc48b8640c898d9 (diff) | |
| download | focaccia-qemu-ee42b261b0a2e465ae003ddcaf1caf117c201f74.tar.gz focaccia-qemu-ee42b261b0a2e465ae003ddcaf1caf117c201f74.zip | |
vfio/pci: Allow the selection of a given iommu backend
Now we support two types of iommu backends, let's add the capability to select one of them. This depends on whether an iommufd object has been linked with the vfio-pci device: If the user wants to use the legacy backend, it shall not link the vfio-pci device with any iommufd object: -device vfio-pci,host=0000:02:00.0 This is called the legacy mode/backend. If the user wants to use the iommufd backend (/dev/iommu) it shall pass an iommufd object id in the vfio-pci device options: -object iommufd,id=iommufd0 -device vfio-pci,host=0000:02:00.0,iommufd=iommufd0 Suggested-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Tested-by: Eric Auger <eric.auger@redhat.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio/helpers.c')
0 files changed, 0 insertions, 0 deletions