[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.0.5-testing] 32 on 64: Don't lock up Xen if you need to do lots of grant operations



# HG changeset patch
# User Steven Smith <ssmith@xxxxxxxxxxxxx>
# Date 1177676758 -3600
# Node ID 491bed0350f1f813951f6e45c291512bb58b0632
# Parent  550a795a3dbd281de78cc513e183576a554ae1b0
32 on 64: Don't lock up Xen if you need to do lots of grant operations
in a single batch for a 32-on-64 domain.

Signed-off-by: Steven Smith <sos22@xxxxxxxxx>
---
 xen/common/compat/grant_table.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 550a795a3dbd -r 491bed0350f1 xen/common/compat/grant_table.c
--- a/xen/common/compat/grant_table.c   Wed Apr 25 12:04:55 2007 +0100
+++ b/xen/common/compat/grant_table.c   Fri Apr 27 13:25:58 2007 +0100
@@ -133,7 +133,7 @@ int compat_grant_table_op(unsigned int c
             break;
 
         case GNTTABOP_transfer:
-            for ( n = 0; i < COMPAT_ARG_XLAT_SIZE / sizeof(*nat.xfer) && i < 
count && rc == 0; ++i, ++n )
+            for ( n = 0; n < COMPAT_ARG_XLAT_SIZE / sizeof(*nat.xfer) && i < 
count && rc == 0; ++i, ++n )
             {
                 if ( unlikely(__copy_from_guest_offset(&cmp.xfer, cmp_uop, i, 
1)) )
                     rc = -EFAULT;
@@ -160,7 +160,7 @@ int compat_grant_table_op(unsigned int c
             break;
 
         case GNTTABOP_copy:
-            for ( n = 0; i < COMPAT_ARG_XLAT_SIZE / sizeof(*nat.copy) && i < 
count && rc == 0; ++i, ++n )
+            for ( n = 0; n < COMPAT_ARG_XLAT_SIZE / sizeof(*nat.copy) && i < 
count && rc == 0; ++i, ++n )
             {
                 if ( unlikely(__copy_from_guest_offset(&cmp.copy, cmp_uop, i, 
1)) )
                     rc = -EFAULT;

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.