From: "Jan Beulich" Subject: Re: [PATCH v2 1/3] xen: allow set_mmio_p2m_entry to specify access type Date: Wed, 21 Jan 2015 11:10:18 +0000 Message-ID: <54BF972A02000078000576DE@mail.emea.novell.com> References: <1421773534-15752-1-git-send-email-roger.pau@citrix.com> <1421773534-15752-2-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 1YDtAy-0006sO-Tj for xen-devel@lists.xenproject.org; Wed, 21 Jan 2015 11:10:21 +0000 In-Reply-To: <1421773534-15752-2-git-send-email-roger.pau@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: Roger Pau Monne Cc: Kevin Tian , Eddie Dong , Andrew Cooper , Tim Deegan , Jun Nakajima , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 20.01.15 at 18:05, wrote: > --- a/xen/arch/x86/domain_build.c > +++ b/xen/arch/x86/domain_build.c > @@ -323,7 +323,8 @@ static __init void pvh_add_mem_mapping(struct domain *d, > unsigned long gfn, > > for ( i = 0; i < nr_mfns; i++ ) > { > - if ( (rc = set_mmio_p2m_entry(d, gfn + i, _mfn(mfn + i))) ) > + if ( (rc = set_mmio_p2m_entry(d, gfn + i, _mfn(mfn + i), > + p2m_get_hostp2m(d)->default_access)) ) Please latch this value prior to entering the loop. Jan