From: Keir Fraser Subject: Re: TLB flushing Date: Tue, 23 Jan 2007 19:09:58 +0000 Message-ID: References: <45B5FDD6.E57C.0030.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <45B5FDD6.E57C.0030.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ky Srinivasan , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 23/1/07 18:28, "Ky Srinivasan" wrote: > Looking at the do_mmuext_op(), it looks like we are not handling shadow mode > uniformly : > For instance, for MMUEXT_INVLPG_LOCAL case, we deal with the case where the > domain may be operating under shadow mode; however, for other flush options we > don't deal with the case where the domain may be operating in shadow mode. > What is the rationale for this? Most (or perhaps even all) of the references to shadow mode in arch/x86/mm.c are to handle PV guests running in shadow_mode_translate and/or shadow_mode_refcounts. Those modes were never really a well-integrated or -tested configuration for PV guests and are now deprecated (e.g., reference to shadow mode in MMUEXT_INVLPG_LOCAL will be removed sometime soon). Really most of arch/x86/mm.c needs to be renamed to arch/x86/mm/pv.c... -- Keir