mirror of https://github.com/xqemu/xqemu.git
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>
This commit is contained in:
parent
ba3b40de42
commit
013002f0fb
|
@ -729,7 +729,7 @@ static void vfio_listener_release(VFIOContainer *container)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct vfio_info_cap_header *
|
struct vfio_info_cap_header *
|
||||||
vfio_get_region_info_cap(struct vfio_region_info *info, uint16_t id)
|
vfio_get_region_info_cap(struct vfio_region_info *info, uint16_t id)
|
||||||
{
|
{
|
||||||
struct vfio_info_cap_header *hdr;
|
struct vfio_info_cap_header *hdr;
|
||||||
|
|
|
@ -189,6 +189,8 @@ int vfio_get_region_info(VFIODevice *vbasedev, int index,
|
||||||
int vfio_get_dev_region_info(VFIODevice *vbasedev, uint32_t type,
|
int vfio_get_dev_region_info(VFIODevice *vbasedev, uint32_t type,
|
||||||
uint32_t subtype, struct vfio_region_info **info);
|
uint32_t subtype, struct vfio_region_info **info);
|
||||||
bool vfio_has_region_cap(VFIODevice *vbasedev, int region, uint16_t cap_type);
|
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
|
#endif
|
||||||
extern const MemoryListener vfio_prereg_listener;
|
extern const MemoryListener vfio_prereg_listener;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue