From: Ian Campbell Subject: Re: [RFC v3 5/6] xen/arm: Add log_dirty support for ARM Date: Wed, 14 May 2014 13:04:25 +0100 Message-ID: <1400069065.29366.61.camel@kazak.uk.xensource.com> References: <1399583908-21755-1-git-send-email-w1.huang@samsung.com> <1399583908-21755-6-git-send-email-w1.huang@samsung.com> <536F9707.4060807@linaro.org> <5370D3EC.80005@samsung.com> <5370D6AC.1040407@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5370D6AC.1040407@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Wei Huang , keir@xen.org, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, tim@xen.org, jaeyong.yoo@samsung.com, xen-devel@lists.xen.org, jbeulich@suse.com, ian.jackson@eu.citrix.com, yjhyun.yoo@samsung.com List-Id: xen-devel@lists.xenproject.org On Mon, 2014-05-12 at 15:11 +0100, Julien Grall wrote: > On 05/12/2014 03:00 PM, Wei Huang wrote: > > On 05/11/2014 10:28 AM, Julien Grall wrote: > >> the guest very soon. With this > >> solution there is a 1GB hole between the 2 banks. Your function will > >> therefore > >> stop to work. > >> > >> Furthermore, Xen should not assume that the layout of the guest will > >> always start > >> at GUEST_RAM_BASE. > >> > >> I think you can use max_mapped_pfn and lowest_mapped_pfn here. You may > >> need to > >> modify a bit the signification of it in the p2m code or introduce a > >> new field. > > These two values don't work for the purpose of dirty tracking. What we > > need are two fields to track _physical_ memory. lowest_mapped_pfn tracks > > all memory types, which doesn't apply here. > > > > Will new fields to track physical ram space acceptable for you? > > I'm fine with new fields to track physical RAM space. Don't forget it > may have non-RAM hole in this range. FWIW x86 appears to use a rangeset for this purpose, and keeps it up to date when modifying the p2m. Doesn't seem like a bad plan to me... Ian.