From: Ian Campbell Subject: Re: [PATCH V3] X86/vMCE: handle broken page with regard to migration Date: Mon, 19 Nov 2012 09:55:19 +0000 Message-ID: <1353318919.18229.7.camel@zakaz.uk.xensource.com> References: <446f6b9bfc89137e1aa0.1353117881@ljsromley.bj.intel.com> <20646.33684.410414.579210@mariner.uk.xensource.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: "Liu, Jinsong" Cc: George Dunlap , "xen-devel@lists.xensource.com" , Ian Jackson , "JBeulich@suse.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-11-16 at 18:31 +0000, Liu, Jinsong wrote: > >> + /* > >> + * if vMCE occur at last iter, do one more iter so that it get > >> + * chance to transfer broken page's pfn_type and pfn number to > >> + * target and then take appropriate action [...] > >> + } > > > > Is this really the best way of doing this ? Isn't there some single > > flag the hypervisor sets somewhere ? > That will involve adding new hypercall, and notifying hypervisor > whether tools side is at the last iter round. If we get to this stage then haven't we either already sent something over the wire for this page or marked it as dirty when we tried and failed to send it? In the former case we don't care that the page is now broken on the source since the target has got a good pre-breakage copy. In the latter case could we not set a flag at the same time as we mark the page dirty which means "go round at least one more time"? Ian.