From: Ian Campbell Subject: Re: Limitation in HVM physmap Date: Fri, 18 Oct 2013 16:07:58 +0100 Message-ID: <1382108878.6933.5.camel@kazak.uk.xensource.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> 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, Stefano Stabellini , George Dunlap , Tim Deegan , xen-devel@lists.xen.org, Jan Beulich List-Id: xen-devel@lists.xenproject.org On Fri, 2013-10-18 at 16:01 +0100, 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. Does all of this get logged to the xen debug console? Can you post a full log perhaps to clarify things for us?