From: Tim Deegan Subject: Re: kernel bootup slow issue on ovm3.1.1 Date: Mon, 13 Aug 2012 10:07:57 +0100 Message-ID: <20120813090757.GA75552@ocelot.phlegethon.org> References: <5020C24A.3060604@oracle.com> <5020F003020000780009322C@nat28.tlf.novell.com> <502235E8.9040309@oracle.com> <50229B840200007800093A73@nat28.tlf.novell.com> <5023860E.7080908@oracle.com> <5023AE960200007800093DE8@nat28.tlf.novell.com> <502490A7.7020603@oracle.com> <502535280200007800094322@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <502535280200007800094322@nat28.tlf.novell.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: Jan Beulich Cc: xen-devel , Feng Jin , zhenzhong.duan@oracle.com, Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org At 15:22 +0100 on 10 Aug (1344612120), Jan Beulich wrote: > Yeah, that CR0 write disables the caches, and that's pretty > expensive on EPT (not sure why NPT doesn't use/need the > same hook) when the guest has any active MMIO regions: > vmx_set_uc_mode(), when HAP is enabled, calls > ept_change_entry_emt_with_range(), which is a walk through > the entire guest page tables (i.e. scales with guest size, or, to > be precise, with the highest populated GFN). :( That's not so great. It can definitely be done more efficiently than with that for() loop, and I wonder whether there isn't some better way involving flipping a global flag somewhere. If no EPT maintainers have commented on this by Thursday I'll look into it then. Tim.