From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH 1/2] x86/hvm: actually release ioreq server pages Date: Thu, 23 Apr 2015 16:50:57 +0100 Message-ID: <553914E1.5050705@citrix.com> References: <1429803988-10177-1-git-send-email-paul.durrant@citrix.com> <1429803988-10177-2-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YlKmb-0001fT-T6 for xen-devel@lists.xenproject.org; Thu, 23 Apr 2015 17:19:26 +0000 In-Reply-To: <1429803988-10177-2-git-send-email-paul.durrant@citrix.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: Paul Durrant , xen-devel@lists.xenproject.org Cc: Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 23/04/15 16:46, Paul Durrant wrote: > hvm_free_ioreq_gmfn has the sense of the ioreq_gmfn mask inverted; it > needs to set a bit to release the gmfn, not clear it. > > Signed-off-by: Paul Durrant > Cc: Keir Fraser > Cc: Jan Beulich > Cc: Andrew Cooper s/mask/free_mask/ ? For the change itself, Reviewed-by: Andrew Cooper > --- > xen/arch/x86/hvm/hvm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c > index bfde380..f840175 100644 > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -496,7 +496,7 @@ static void hvm_free_ioreq_gmfn(struct domain *d, unsigned long gmfn) > { > unsigned int i = gmfn - d->arch.hvm_domain.ioreq_gmfn.base; > > - clear_bit(i, &d->arch.hvm_domain.ioreq_gmfn.mask); > + set_bit(i, &d->arch.hvm_domain.ioreq_gmfn.mask); > } > > static void hvm_unmap_ioreq_page(struct hvm_ioreq_server *s, bool_t buf)