From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1oMJ-0002cp-GU for qemu-devel@nongnu.org; Sun, 26 Feb 2012 19:22:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1oMF-0003it-Cn for qemu-devel@nongnu.org; Sun, 26 Feb 2012 19:22:31 -0500 Received: from ozlabs.org ([203.10.76.45]:60016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1oMF-0003ib-1a for qemu-devel@nongnu.org; Sun, 26 Feb 2012 19:22:27 -0500 Date: Mon, 27 Feb 2012 11:16:05 +1100 From: David Gibson Message-ID: <20120227001605.GD3433@truffala.fritz.box> References: <1330043012-30556-1-git-send-email-david@gibson.dropbear.id.au> <1330043012-30556-7-git-send-email-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 6/6] kvm: Fix dirty tracking with large kernel page size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Benjamin Herrenschmidt , Marcelo Tossatti , qemu-devel@nongnu.org, anthony@codemonkey.ws, Avi Kivity On Sun, Feb 26, 2012 at 09:41:17PM +0000, Blue Swirl wrote: > On Fri, Feb 24, 2012 at 00:23, David Gibson wrote: > > From: Benjamin Herrenschmidt > > > > If the kernel page size is larger than TARGET_PAGE_SIZE, which > > happens for example on ppc64 with kernels compiled for 64K pages, > > the dirty tracking doesn't work. > > I think a better solution would be to push this to memory API and > underlying exec.c dirty tracking so that they use the same page size > as kernel (only in this KVM case, in general dirty tracking should > match TARGET_PAGE_SIZE granularity). I'm having trouble reconciling the two parts of this comment. If it should be in terms of TARGET_PAGE_SIZE generally, why _not_ keep it that way always, and just do a fixup when we have to send the data to the host kernel in terms of host kernel page size? -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson