From: Ian Campbell Subject: Re: [RFC Patch v4 1/9] copy the correct page to memory Date: Mon, 22 Sep 2014 15:38:08 +0100 Message-ID: <1411396688.14971.18.camel@kazak.uk.xensource.com> References: <1411365561-29242-1-git-send-email-wency@cn.fujitsu.com> <1411365561-29242-2-git-send-email-wency@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411365561-29242-2-git-send-email-wency@cn.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wen Congyang Cc: Lai Jiangshan , Ian Jackson , Jiang Yunhong , Dong Eddie , xen devel , Hong Tao , Yang Hongyang List-Id: xen-devel@lists.xenproject.org On Mon, 2014-09-22 at 13:59 +0800, Wen Congyang wrote: > From: Hong Tao > > apply_batch() only handles MAX_BATCH_SIZE pages at one time. If > there is some bogus/unmapped/allocate-only/broken page, we will > skip it. So when we call apply_batch() again, the first page's > index is curbatch - invalid_pages. invalid_pages stores the number > of bogus/unmapped/allocate-only/broken pages we have found. > > In many cases, invalid_pages is 0, so we don't catch this error. > > Signed-off-by: Hong Tao > Signed-off-by: Wen Congyang > Acked-by: Ian Campbell Applied this and "csum the correct page". In both cases I prefixed the subject "tools: libxc: restore:". I also applied "pass correct file to qemu if we use blktap2" and "read nictype from xenstore" prefixing both "tools: libxl: ". The rest had some comment from me and others, apart from #9 which I'm about to go and look at now.