diff options
author | Matthew Rosato <mjrosato@linux.ibm.com> | 2020-10-26 11:34:40 -0400 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2020-11-01 12:30:52 -0700 |
commit | 92fe289ace3e559e2d18d0c2e49cdfb4cbd5a59b (patch) | |
tree | d442f2b340b85314770c88992f17b4092a6c261f /include | |
parent | 9670ee752727945d8ce4f76efc0b68364b832f20 (diff) | |
download | qemu-92fe289ace3e559e2d18d0c2e49cdfb4cbd5a59b.zip qemu-92fe289ace3e559e2d18d0c2e49cdfb4cbd5a59b.tar.gz qemu-92fe289ace3e559e2d18d0c2e49cdfb4cbd5a59b.tar.bz2 |
vfio: Add routine for finding VFIO_DEVICE_GET_INFO capabilities
Now that VFIO_DEVICE_GET_INFO supports capability chains, add a helper
function to find specific capabilities in the chain.
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/vfio/vfio-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index 1d14946..baeb4dc 100644 --- a/include/hw/vfio/vfio-common.h +++ b/include/hw/vfio/vfio-common.h @@ -216,6 +216,8 @@ struct vfio_info_cap_header * vfio_get_region_info_cap(struct vfio_region_info *info, uint16_t id); bool vfio_get_info_dma_avail(struct vfio_iommu_type1_info *info, unsigned int *avail); +struct vfio_info_cap_header * +vfio_get_device_info_cap(struct vfio_device_info *info, uint16_t id); #endif extern const MemoryListener vfio_prereg_listener; |