From: "Jan Beulich" Subject: Re: [PATCH 1/2] x86/hvm: actually release ioreq server pages Date: Fri, 24 Apr 2015 09:01:25 +0100 Message-ID: <553A14750200007800075786@mail.emea.novell.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 1YlYY9-00048o-NK for xen-devel@lists.xenproject.org; Fri, 24 Apr 2015 08:01:25 +0000 In-Reply-To: <1429803988-10177-2-git-send-email-paul.durrant@citrix.com> Content-Disposition: inline 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 Cc: Andrew Cooper , Keir Fraser , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 23.04.15 at 17:46, wrote: > --- 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); > } Double checking this I came to wonder whether HVM_PARAM_NR_IOREQ_SERVER_PAGES handling isn't broken when invoked a second time with a.value smaller than what was used the first time, or when any server pages are already in use. Jan