Received: from eggs.gnu.org ([2001:4830:134:3::10]:40290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bu8Rm-0000xH-2u for qemu-devel@nongnu.org; Tue, 11 Oct 2016 21:35:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bu8Rh-00006E-3t for qemu-devel@nongnu.org; Tue, 11 Oct 2016 21:35:05 -0400 Sender: Richard Henderson References: <1476205699-28857-1-git-send-email-peter.maydell@linaro.org> <20039503-ebed-fe18-be17-78d39643c9af@twiddle.net> From: Richard Henderson Message-ID: Date: Tue, 11 Oct 2016 20:34:53 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 0/7] Runtime pagesize computation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-arm , QEMU Developers , Patch Tracking , paolo@archaic.org.uk, Vijaya Kumar K , "Dr . David Alan Gilbert" , Laurent Desnogues On 10/11/2016 03:18 PM, Peter Maydell wrote: > On 11 October 2016 at 12:20, Richard Henderson wrote: >> On 10/11/2016 12:08 PM, Peter Maydell wrote: >>> I would ideally have liked to finalize things much later, but >>> this is in practice hugely difficult because so many things >>> (in particular all the address space/memory system code) >>> assume the target page size is known. > >> Unfortunate. I suppose that 4k is still better than 1k, but >> I was hoping to get 16k or 64k (or higher) when the OS is >> configured to use such. I.e. totally dynamically configurable >> upon write to the appropriate cpu register. > > I think that would run into problems with migration: > the migration stream all works in guest-pages of ram and > a mismatch means migration doesn't work. Perhaps migration should use definitions based off of TARGET_PAGE_BITS_MIN? Dunno how big of a job that would be... > The trouble is that all the data structures work in terms > of page sizes (even though we support sub-page allocations > those are still done by carving up a page-size chunk). > It could probably be done but it looked like a gargantuan > task so I decided this was a better compromise. Fair enough. This is still an improvement for an interesting guest. r~