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-devel

[Xen-devel] [PATCH] small fix for shadow32.c

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] small fix for shadow32.c
From: "Ling, Xiaofeng" <xiaofeng.ling@xxxxxxxxx>
Date: Tue, 06 Dec 2005 16:53:08 +0800
Delivery-date: Tue, 06 Dec 2005 08:55:49 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510
# HG changeset patch
# User Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>
# Node ID 0f5f1b6275136942aa1675835fc5439d69c24b61
# Parent  372d6a007f49709c1cbc82aa11afd77c9d55cbdb
Judge after instead of before --
shadow.c already fixed it.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>

diff -r 372d6a007f49 -r 0f5f1b627513 xen/arch/x86/shadow32.c
--- a/xen/arch/x86/shadow32.c   Tue Dec  6 10:27:06 2005 +0800
+++ b/xen/arch/x86/shadow32.c   Tue Dec  6 16:47:10 2005 +0800
@@ -2213,7 +2213,7 @@
     }

     if ( shadow_mode_external(d) ) {
-        if (write_refs-- == 0)
+        if (--write_refs == 0)
             return 0;

// Use the back pointer to locate the shadow page that can contain
# HG changeset patch
# User Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>
# Node ID 0f5f1b6275136942aa1675835fc5439d69c24b61
# Parent  372d6a007f49709c1cbc82aa11afd77c9d55cbdb
Judge after instead of before --
shadow.c already fixed it.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>

diff -r 372d6a007f49 -r 0f5f1b627513 xen/arch/x86/shadow32.c
--- a/xen/arch/x86/shadow32.c   Tue Dec  6 10:27:06 2005 +0800
+++ b/xen/arch/x86/shadow32.c   Tue Dec  6 16:47:10 2005 +0800
@@ -2213,7 +2213,7 @@
     }
     
     if ( shadow_mode_external(d) ) {
-        if (write_refs-- == 0) 
+        if (--write_refs == 0) 
             return 0;
 
          // Use the back pointer to locate the shadow page that can contain
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] small fix for shadow32.c, Ling, Xiaofeng <=