From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJho3-0006ml-8H for qemu-devel@nongnu.org; Wed, 11 Sep 2013 06:38:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJhnx-0004tO-9d for qemu-devel@nongnu.org; Wed, 11 Sep 2013 06:37:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJhnx-0004r8-1x for qemu-devel@nongnu.org; Wed, 11 Sep 2013 06:37:49 -0400 Message-ID: <1378895860.15290.32.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Wed, 11 Sep 2013 12:37:40 +0200 In-Reply-To: References: <1378877909-28518-1-git-send-email-famz@redhat.com> <1378877909-28518-6-git-send-email-famz@redhat.com> <52301B4E.7000308@redhat.com> <52301EBD.5070209@redhat.com> <1378886460.15290.4.camel@nilsson.home.kraxel.org> <1378889762.15290.25.camel@nilsson.home.kraxel.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH v5 5/6] configure: introduce --enable-modules List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Fam Zheng , Michael Tokarev , QEMU Developers , Stefan Hajnoczi , Paolo Bonzini , =?ISO-8859-1?Q?Llu=EDs?= Vilanova , Richard Henderson > > (3) rom->num_pages field. That one will change for arm. The linux > > kernel qxl kms driver seems not to care at all. Not surprising, > > it is more convenient to use the offsets in the rom to figure how > > the qxl memory layout looks like. > > Note that the ARM Linux *kernel* will (probably) be using 4K pages > anyway. It's just that QEMU's TARGET_PAGE_SIZE means "smallest > page size this CPU family could possibly support", which for ARM > is 1K, even if 99.9% of guests won't use 1K pages. This is one > of the reasons it's not very useful for devices -- it's almost just > an internal implementation detail of QEMU's TLB/memory system. > > What is the num_pages field supposed to mean, given that > "page size" isn't a well defined platform independent value > (for hardware or for QEMU)? It's 4k on x86 and not really defined on !x86 (with the !x86 installed base being pretty close to zero). I think we should just define it to be 4k everywhere. cheers, Gerd