From: "Jan Beulich" Subject: Re: Limitation in HVM physmap Date: Fri, 18 Oct 2013 16:09:02 +0100 Message-ID: <52616B2E02000078000FC25B@nat28.tlf.novell.com> References: <20131018142012.GB20185@zion.uk.xensource.com> <20131018142824.GA33100@deinos.phlegethon.org> <20131018143640.GC20185@zion.uk.xensource.com> <5261661D02000078000FC204@nat28.tlf.novell.com> <20131018150132.GE20185@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20131018150132.GE20185@zion.uk.xensource.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: Wei Liu Cc: keir@xen.org, Ian Campbell , Stefano Stabellini , George Dunlap , Tim Deegan , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 18.10.13 at 17:01, Wei Liu wrote: > On Fri, Oct 18, 2013 at 03:47:25PM +0100, Jan Beulich wrote: >> >>> On 18.10.13 at 16:36, Wei Liu wrote: >> > On Fri, Oct 18, 2013 at 04:28:24PM +0200, Tim Deegan wrote: >> >> At 15:20 +0100 on 18 Oct (1382106012), Wei Liu wrote: >> >> > The scenario is that: when QEMU boots with OVMF (UEFI firmware), OVMF >> >> > will first map the framebuffer to 0x80000000, resulting the framebuffer >> >> > MFNs added to corresponding slots in physmap. A few moments later when >> >> > Linux kernel loads, it tries to map framebuffer MFNs to 0xf00000000, >> >> > which fails because those MFNs have already been mapped in other >> >> > locations. Is there a way to fix this? >> >> Since when does the Linux kernel have control over the physical >> address where the frame buffer sits (other than by writing PCI >> devices' BARs, which implies the address range to change rather >> than a second instance to be created)? >> > > I don't think Linux changes things -- 0xf0000000 is what it gets from > Xen and it honors that. It's OVMF that plays with things. There is a > procedure in OVMF that remaps PCI resources. Then I'd suppose there is where you would be looking for how to fix it. Jan