From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:39080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h217E-0005mI-Li for qemu-devel@nongnu.org; Thu, 07 Mar 2019 17:03:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2175-0004Xx-NT for qemu-devel@nongnu.org; Thu, 07 Mar 2019 17:03:43 -0500 Date: Thu, 7 Mar 2019 15:03:32 -0700 From: Alex Williamson Message-ID: <20190307150332.72bde784@w520.home> In-Reply-To: <20190307050518.64968-3-aik@ozlabs.ru> References: <20190307050518.64968-1-aik@ozlabs.ru> <20190307050518.64968-3-aik@ozlabs.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH qemu v4 2/3] vfio: Make vfio_get_region_info_cap public List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, David Gibson , Gavin Shan , Sam Bobroff , Piotr Jaroszynski , Leonardo Augusto =?UTF-8?B?R3VpbWFyw6Nlcw==?= Garcia , Jose Ricardo Ziviani , Daniel Henrique Barboza On Thu, 7 Mar 2019 16:05:17 +1100 Alexey Kardashevskiy wrote: > This makes vfio_get_region_info_cap() to be used in quirks. > > Signed-off-by: Alexey Kardashevskiy > --- > include/hw/vfio/vfio-common.h | 2 ++ > hw/vfio/common.c | 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) Acked-by: Alex Williamson > diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h > index 7624c9f511c4..fbf0966af484 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; > > diff --git a/hw/vfio/common.c b/hw/vfio/common.c > index df2b4721bffb..4374cc6176a2 100644 > --- a/hw/vfio/common.c > +++ b/hw/vfio/common.c > @@ -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) > { > struct vfio_info_cap_header *hdr;