From: Ian Campbell Subject: Re: [PATCH RFC v2 8/9] xen/arm: Implement hypercall for dirty page tracing (shadow op) Date: Thu, 4 Jul 2013 11:36:27 +0100 Message-ID: <1372934187.7184.43.camel@kazak.uk.xensource.com> References: <1372842943-27482-1-git-send-email-jaeyong.yoo@samsung.com> <1372842943-27482-9-git-send-email-jaeyong.yoo@samsung.com> <003a01ce7855$6a6dd820$3f498860$%yoo@samsung.com> <1372927377.7184.7.camel@kazak.uk.xensource.com> <000f01ce789f$c9566a60$5c033f20$%yoo@samsung.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: 'Elena Pyatunina' , Jaeyong Yoo , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2013-07-04 at 11:29 +0100, Stefano Stabellini wrote: > On Thu, 4 Jul 2013, Jaeyong Yoo wrote: > > > > Yes, you are right. Since there is no way to figure out this value at > > > > the moment, we use this static value here. I think we need to parse > > > > dtb of domu guest and get this value from there. Do you have any > > > suggestion? > > > > > > The hypervisor should never be parsing (or even seeing) the domU DTB. > > > Instead the toolstack should poke this sort of information down via a > > > (presumably new) DOMCTL. > > > > Got it. > > I wonder whether we could find the start of memory by looking at the p2m > and then storing the value in a per-domain variable to avoid a pagetable > walk every time. I think the toolstack should just tell the hypervisor. Ian.