summaryrefslogtreecommitdiffstats
path: root/include/hw/vfio/vfio-common.h
diff options
context:
space:
mode:
authorAlexey Kardashevskiy2019-03-07 06:05:17 +0100
committerDavid Gibson2019-03-12 06:17:35 +0100
commit013002f0fbf62545c0f5ea4c5c2d554a85919647 (patch)
treef395ace7347fba72d7d1a09bcee50142571a9724 /include/hw/vfio/vfio-common.h
parentSuppress test warnings about missing Spectre/Meltdown mitigations with TCG (diff)
downloadqemu-013002f0fbf62545c0f5ea4c5c2d554a85919647.tar.gz
qemu-013002f0fbf62545c0f5ea4c5c2d554a85919647.tar.xz
qemu-013002f0fbf62545c0f5ea4c5c2d554a85919647.zip
vfio: Make vfio_get_region_info_cap public
This makes vfio_get_region_info_cap() to be used in quirks. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Acked-by: Alex Williamson <alex.williamson@redhat.com> Message-Id: <20190307050518.64968-3-aik@ozlabs.ru> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/vfio/vfio-common.h')
-rw-r--r--include/hw/vfio/vfio-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h
index 7624c9f511..fbf0966af4 100644
--- a/include/hw/vfio/vfio-common.h
+++ b/include/hw/vfio/vfio-common.h
@@ -189,6 +189,8 @@ int vfio_get_region_info(VFIODevice *vbasedev, int index,
int vfio_get_dev_region_info(VFIODevice *vbasedev, uint32_t type,
uint32_t subtype, struct vfio_region_info **info);
bool vfio_has_region_cap(VFIODevice *vbasedev, int region, uint16_t cap_type);
+struct vfio_info_cap_header *
+vfio_get_region_info_cap(struct vfio_region_info *info, uint16_t id);
#endif
extern const MemoryListener vfio_prereg_listener;