backends/iommufd: Extend iommufd_backend_get_device_info() to fetch HW capabilities
authorJoao Martins <joao.m.martins@oracle.com>
Fri, 19 Jul 2024 12:04:51 +0000 (13:04 +0100)
committerCédric Le Goater <clg@redhat.com>
Tue, 23 Jul 2024 15:14:52 +0000 (17:14 +0200)
commit2d1bf2589736b3714f3940d360404732ac13019c
treed415bb2dc8377c5c42208a8c6b1ca3359c8f597c
parent9f17604195c03580b16c3cc5631c86f3894dd442
backends/iommufd: Extend iommufd_backend_get_device_info() to fetch HW capabilities

The helper will be able to fetch vendor agnostic IOMMU capabilities
supported both by hardware and software. Right now it is only iommu dirty
tracking.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
backends/iommufd.c
hw/vfio/iommufd.c
include/sysemu/iommufd.h