From: Ian Campbell Subject: Re: [linux-linus test] 30356: regressions - FAIL Date: Wed, 24 Sep 2014 11:15:20 +0100 Message-ID: <1411553720.1781.182.camel@kazak.uk.xensource.com> References: <1411472727.14989.102.camel@kazak.uk.xensource.com> <54218FA7.8090706@linaro.org> <5421AE78.4040206@linaro.org> <1411497623.3824.1.camel@citrix.com> <542203A9.3090702@linaro.org> <1411547049.1781.119.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Julien Grall , "xen.org" , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, 2014-09-24 at 11:02 +0100, Stefano Stabellini wrote: > On Wed, 24 Sep 2014, Ian Campbell wrote: > > On Wed, 2014-09-24 at 00:35 +0100, Julien Grall wrote: > > > > > > On 23/09/2014 19:40, Ian Campbell wrote: > > > > On Tue, 2014-09-23 at 18:31 +0100, Julien Grall wrote: > > > >> I guess we will have to select LPAE when XEN is enabled, right? If > > > >> it's the case that would mean the user won't be able to compile a > > > >> Linux guest with short page table and Xen. > > > >> > > > >> Any though? > > > > > > > > Things must work without in guest LPAE too, so something somewhere else > > > > will need fixing. > > > > > > > > Apart from restricting the user in an unwanted way requiring LPAE will > > > > mean that practically no distro installer will work in a Xen guest. > > > > > > Xen does an identity mapping for the host physical address into DOM0 > > > for the grant mapping. DOM0 will use a scratch page (see commit 340720b > > > "xen/arm: reimplement xen_dma_unmap_page & friends") and map and this > > > physical address. > > > > > > That means on platform with an address space higher than 32 bits, which > > > is the case on Midway, we have to handle 64 bits physical address in DOM0. > > > > > > With the current implementation in Linux we can only use LPAE when a > > > guest is started. The distro installer will still be able to work with > > > short page table. > > > > > > The drawback is we are requiring LPAE from DOM0 and a different kernel > > > in the guest if the user doesn't want to use LPAE. > > > > > > As the code is already pushed in Linux 3.17, I don't find a simpler > > > solution to fix Linux boot without requiring LPAE. > > > > We will have to try harder then, requiring LPAE simply isn't acceptable > > IMHO. > > I agree but the solution is not simple. > > With the current scheme we would need to find a way to map pages at > 64bit physical addresses in Dom0 without CONFIG_ARM_LPAE. Not sure if > that is possible. I'm pretty certain it isn't... > Otherwise we would need to come up with an entirely new scheme. I fear this may end up being the case. I've got a cold towel and a whiteboard waiting for you in the office... Ian.