From: Ian Jackson Subject: Re: [PATCH V3] X86/vMCE: handle broken page with regard to migration Date: Wed, 21 Nov 2012 11:55:30 +0000 Message-ID: <20652.49458.119111.771393@mariner.uk.xensource.com> References: <446f6b9bfc89137e1aa0.1353117881@ljsromley.bj.intel.com> <20651.51754.974511.264479@mariner.uk.xensource.com> <20651.52995.774236.722303@mariner.uk.xensource.com> <50ACBC50.4040204@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <50ACBC50.4040204@eu.citrix.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: George Dunlap Cc: "Liu, Jinsong" , "xen-devel@lists.xensource.com" , Ian Campbell , Jan Beulich List-Id: xen-devel@lists.xenproject.org George Dunlap writes ("Re: [Xen-devel] [PATCH V3] X86/vMCE: handle broken page with regard to migration"): > But on the whole, is that really that much *faster* to do it that way? > Either way you're still adding a single hypercall to the whole thing, > and one iteration of a loop for each page; but in Jinsong's patch, the > loop is done all at once, so presumably the compiler / processor will be > able to do make better use of loop unrolling / registers / the pipeline > / branch prediction / caches &c. > > The only way to avoid the loop would be to add an extra "have any pages > been marked broken / dirty" bit somewhere, which is probably more > trouble than it's worth. OK, that makes sense. Ian.