Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
qemu-linux-user.26284
0132-vfio-Make-vfio_get_region_info_cap-.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0132-vfio-Make-vfio_get_region_info_cap-.patch of Package qemu-linux-user.26284
From: Alexey Kardashevskiy <aik@ozlabs.ru> Date: Thu, 7 Mar 2019 16:05:17 +1100 Subject: vfio: Make vfio_get_region_info_cap public Include-If: %if 0%{?suse_version} == 1315 Git-commit: 013002f0fbf62545c0f5ea4c5c2d554a85919647 References: bsc#1179725 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> Signed-off-by: Cho, Yu-Chen <acho@suse.com> --- hw/vfio/common.c | 2 +- include/hw/vfio/vfio-common.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 7c185e5a2e79933a8dce8c6e4fad..f58b487ff2d691e125b02a30cc48 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -711,7 +711,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) { struct vfio_info_cap_header *hdr; diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index 1b434d02f6683d2e10f2c1a49d30..abc82f9d10c656b452a43498d55d 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;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor