WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-4.0-testing] x86: fix off-by-one error in the cache

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.0-testing] x86: fix off-by-one error in the cache flush portion of flush_area_local().
From: "Xen patchbot-4.0-testing" <patchbot-4.0-testing@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 14 May 2010 00:41:30 -0700
Delivery-date: Fri, 14 May 2010 00:46:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1273481185 -3600
# Node ID dcff1f6352bbebe38da8cc3c8f82872f04d6a0a0
# Parent  fa3117958940f701d11e9a9775974b8e3e09762e
x86: fix off-by-one error in the cache flush portion of flush_area_local().

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
xen-unstable changeset:   21270:bd52f2e040e5
xen-unstable date:        Tue May 04 12:39:29 2010 +0100
---
 xen/arch/x86/flushtlb.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r fa3117958940 -r dcff1f6352bb xen/arch/x86/flushtlb.c
--- a/xen/arch/x86/flushtlb.c   Mon May 10 09:45:58 2010 +0100
+++ b/xen/arch/x86/flushtlb.c   Mon May 10 09:46:25 2010 +0100
@@ -149,7 +149,7 @@ void flush_area_local(const void *va, un
     {
         unsigned long i, sz = 0;
 
-        if ( order < (BITS_PER_LONG - PAGE_SHIFT - 1) )
+        if ( order < (BITS_PER_LONG - PAGE_SHIFT) )
             sz = 1UL << (order + PAGE_SHIFT);
 
         if ( c->x86_clflush_size && c->x86_cache_size && sz &&

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.0-testing] x86: fix off-by-one error in the cache flush portion of flush_area_local()., Xen patchbot-4.0-testing <=