Received: from eggs.gnu.org ([2001:4830:134:3::10]:60298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhCXF-0006PH-Vv for qemu-devel@nongnu.org; Tue, 06 Sep 2016 05:19:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhCXA-0004HY-Ug for qemu-devel@nongnu.org; Tue, 06 Sep 2016 05:19:16 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:39521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhCXA-0004Gq-Pk for qemu-devel@nongnu.org; Tue, 06 Sep 2016 05:19:12 -0400 Date: Tue, 6 Sep 2016 10:19:03 +0100 From: Anthony PERARD Message-ID: <20160906091903.GO1847@perard.uk.xensource.com> References: <1471330556-782-1-git-send-email-paulinaszubarczyk@gmail.com> <1471330556-782-3-git-send-email-paulinaszubarczyk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1471330556-782-3-git-send-email-paulinaszubarczyk@gmail.com> Subject: Re: [Qemu-devel] [PATCH v5 2/2] qdisk - hw/block/xen_disk: grant copy implementation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paulina Szubarczyk Cc: xen-devel@lists.xenproject.org, roger.pau@citrix.com, wei.liu2@citrix.com, ian.jackson@eu.citrix.com, david.vrabel@citrix.com, sstabellini@kernel.org, qemu-devel@nongnu.org On Tue, Aug 16, 2016 at 08:55:56AM +0200, Paulina Szubarczyk wrote: > diff --git a/configure b/configure > index 8d84919..68b3374 100755 > --- a/configure > +++ b/configure > @@ -1956,6 +1956,43 @@ EOF > /* > * If we have stable libs the we don't want the libxc compat > * layers, regardless of what CFLAGS we may have been given. > + * > + * Also, check if xengnttab_grant_copy_segment_t is defined and > + * grant copy operation is implemented. > + */ > +#undef XC_WANT_COMPAT_EVTCHN_API > +#undef XC_WANT_COMPAT_GNTTAB_API > +#undef XC_WANT_COMPAT_MAP_FOREIGN_API > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#if !defined(HVM_MAX_VCPUS) > +# error HVM_MAX_VCPUS not defined > +#endif > +int main(void) { > + xengnttab_handle *xg; > + xengnttab_grant_copy_segment_t* seg = NULL; > + > + xg = xengnttab_open(0, 0); > + xengnttab_map_grant_ref(xg, 0, 0, 0); > + xengnttab_grant_copy(xg, 0, seg); > + > + return 0; > +} I think we should check every interface that qemu use, for here that just mean copy-paste the previous version check and add grant_copy to it. With that fix, I think the patch will be ready to go. Thanks, -- Anthony PERARD