From: Ian Campbell Subject: Re: [PATCH v4 8/9] xen/arm: Implement hypercall for dirty page tracing Date: Tue, 8 Oct 2013 09:46:00 +0100 Message-ID: <1381221960.9920.4.camel@kazak.uk.xensource.com> References: <25269810.259001381213751804.JavaMail.weblogic@epml25> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <25269810.259001381213751804.JavaMail.weblogic@epml25> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: jaeyong.yoo@samsung.com Cc: Julien Grall , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2013-10-08 at 06:29 +0000, Jaeyong Yoo wrote: > >> + /* handle permission fault on write */ > >> + if ( page_fault ) > >> + { > >> + if ( current->domain->arch.dirty.mode == 0 ) > >> + goto bad_data_abort; > >> + > >> + handle_page_fault(current->domain, info.gpa); > > > >You must call advance_pc(regs, hsr) here. > > I got it. Are you sure about this? Eugene's reasoning that we need to replay the faulting instruction seemed pretty sound. Ian.