From: Ian Campbell Subject: Re: [PATCH 1/2] hvmloader: also cover PCI MMIO ranges above 4G with UC MTRR ranges Date: Wed, 21 May 2014 13:24:33 +0100 Message-ID: <1400675073.4856.46.camel@kazak.uk.xensource.com> References: <537A1D1E0200007800013A2C@mail.emea.novell.com> <537A1F790200007800013A4D@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wn5ZX-0001DR-CK for xen-devel@lists.xenproject.org; Wed, 21 May 2014 12:24:39 +0000 In-Reply-To: <537A1F790200007800013A4D@mail.emea.novell.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: Jan Beulich Cc: xen-devel , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Mon, 2014-05-19 at 14:12 +0100, Jan Beulich wrote: > @@ -163,6 +176,17 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, > Add(MMIN, MLEN, MMAX) > Subtract(MMAX, One, MMAX) > > + CreateQWordField(PRT0, \_SB.PCI0._CRS._Y02._MIN, HMIN) > + CreateQWordField(PRT0, \_SB.PCI0._CRS._Y02._MAX, HMAX) > + CreateQWordField(PRT0, \_SB.PCI0._CRS._Y02._LEN, HLEN) > + > + Store(\_SB.HMIN, HMIN) > + Store(\_SB.HLEN, HLEN) > + Add(HMIN, HLEN, HMAX) > + If(LOr(HMIN, HLEN)) { > + Subtract(HMAX, One, HMAX) > + } This is (unlike the low version) conditional because HLEN might be 0? Is the fact that _Y02 might continue to contain all zeroes OK? I expect so, in which case Acked-by: Ian Campbell (I expect you will commit this yourself when you are ready) Ian.