From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 19/20] xen/privcmd: Add support for Linux 64KB page granularity Date: Tue, 14 Jul 2015 17:37:08 +0200 Message-ID: <55A52CA4.1040107__45794.7014635012$1436888314$gmane$org@citrix.com> References: <1436474552-31789-1-git-send-email-julien.grall@citrix.com> <1436474552-31789-20-git-send-email-julien.grall@citrix.com> <55A41BE4.3080104@oracle.com> <55A43638.4030503@citrix.com> <55A52A9E.2000400@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZF2Gd-0004gD-Sa for xen-devel@lists.xenproject.org; Tue, 14 Jul 2015 15:37:11 +0000 In-Reply-To: <55A52A9E.2000400@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Boris Ostrovsky , xen-devel@lists.xenproject.org Cc: ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, linux-kernel@vger.kernel.org, David Vrabel , linux-arm-kernel@lists.infradead.org List-Id: xen-devel@lists.xenproject.org Hi Boris, On 14/07/2015 17:28, Boris Ostrovsky wrote: > On 07/13/2015 06:05 PM, Julien Grall wrote: >> On 13/07/2015 22:13, Boris Ostrovsky wrote: >>> On 07/09/2015 04:42 PM, Julien Grall wrote: >>>> - >>>> struct remap_data { >>>> xen_pfn_t *fgmfn; /* foreign domain's gmfn */ >>>> + xen_pfn_t *efgmfn; /* pointer to the end of the fgmfn array */ >>> >>> It might be better to keep size of fgmfn array instead. >> >> It would means to have an other variable to check that we are at the >> end the array. > > > I thought that's what h_iter is. Is it not? h_iter is for the number of xen pfn in a Linux page. This is because the Linux privcmd interface is working with 4KB page and there may not be enough to fill a 64KB page. So we need another counter for the total number of foreign domain's gmfn. Regards, -- Julien Grall