ia64/xen-unstable

changeset 14970:491bed0350f1

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@cam.ac.uk>
author Steven Smith <ssmith@xensource.com>
date Fri Apr 27 13:25:58 2007 +0100 (2007-04-27)
parents 550a795a3dbd
children 3c352bbc894d
files xen/common/compat/grant_table.c
line diff
     1.1 --- a/xen/common/compat/grant_table.c	Wed Apr 25 12:04:55 2007 +0100
     1.2 +++ b/xen/common/compat/grant_table.c	Fri Apr 27 13:25:58 2007 +0100
     1.3 @@ -133,7 +133,7 @@ int compat_grant_table_op(unsigned int c
     1.4              break;
     1.5  
     1.6          case GNTTABOP_transfer:
     1.7 -            for ( n = 0; i < COMPAT_ARG_XLAT_SIZE / sizeof(*nat.xfer) && i < count && rc == 0; ++i, ++n )
     1.8 +            for ( n = 0; n < COMPAT_ARG_XLAT_SIZE / sizeof(*nat.xfer) && i < count && rc == 0; ++i, ++n )
     1.9              {
    1.10                  if ( unlikely(__copy_from_guest_offset(&cmp.xfer, cmp_uop, i, 1)) )
    1.11                      rc = -EFAULT;
    1.12 @@ -160,7 +160,7 @@ int compat_grant_table_op(unsigned int c
    1.13              break;
    1.14  
    1.15          case GNTTABOP_copy:
    1.16 -            for ( n = 0; i < COMPAT_ARG_XLAT_SIZE / sizeof(*nat.copy) && i < count && rc == 0; ++i, ++n )
    1.17 +            for ( n = 0; n < COMPAT_ARG_XLAT_SIZE / sizeof(*nat.copy) && i < count && rc == 0; ++i, ++n )
    1.18              {
    1.19                  if ( unlikely(__copy_from_guest_offset(&cmp.copy, cmp_uop, i, 1)) )
    1.20                      rc = -EFAULT;