From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gianluca Guida Subject: [PATCH] x86 shadow: disable fast np path in OOS. Date: Fri, 03 Jul 2009 14:52:47 +0100 Message-ID: <4A4E0D2F.3020109@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020902050708060501040609" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------020902050708060501040609 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit As discussed, this patch disables fast NP path when OOS is enabled. Signed off by: Gianluca Guida --------------020902050708060501040609 Content-Type: text/x-diff; name="disable-fastgnp.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="disable-fastgnp.patch" diff -r 7397608bce87 xen/arch/x86/mm/shadow/multi.c --- a/xen/arch/x86/mm/shadow/multi.c Mon Jun 29 15:50:32 2009 +0100 +++ b/xen/arch/x86/mm/shadow/multi.c Fri Jul 03 14:49:37 2009 +0100 @@ -494,11 +494,13 @@ if ( unlikely(!(gflags & _PAGE_PRESENT)) ) { +#if !(SHADOW_OPTIMIZATIONS & SHOPT_OUT_OF_SYNC) /* If a guest l1 entry is not present, shadow with the magic * guest-not-present entry. */ if ( level == 1 ) *sp = sh_l1e_gnp(); else +#endif /* !OOS */ *sp = shadow_l1e_empty(); goto done; } --------------020902050708060501040609 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------020902050708060501040609--