ia64/xen-unstable

changeset 9879:e0d986fc0978

Fix memory_op hypercall mlock/munlock wrapping after the
GET/SET_XEN_GUEST_HANDLE patch.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Apr 27 19:19:59 2006 +0100 (2006-04-27)
parents ef0a56c0784d
children 8bf5637cb269
files tools/libxc/xc_private.c
line diff
     1.1 --- a/tools/libxc/xc_private.c	Thu Apr 27 15:55:09 2006 +0100
     1.2 +++ b/tools/libxc/xc_private.c	Thu Apr 27 19:19:59 2006 +0100
     1.3 @@ -226,7 +226,7 @@ int xc_memory_op(int xc_handle,
     1.4              PERROR("Could not mlock");
     1.5              goto out1;
     1.6          }
     1.7 -        GET_XEN_GUEST_HANDLE(extent_start, reservation->extent_start);
     1.8 +        GET_XEN_GUEST_HANDLE(extent_start, xmml->extent_start);
     1.9          if ( mlock(extent_start,
    1.10                     xmml->max_extents * sizeof(unsigned long)) != 0 )
    1.11          {
    1.12 @@ -281,7 +281,7 @@ int xc_memory_op(int xc_handle,
    1.13          break;
    1.14      case XENMEM_machphys_mfn_list:
    1.15          safe_munlock(xmml, sizeof(*xmml));
    1.16 -        GET_XEN_GUEST_HANDLE(extent_start, reservation->extent_start);
    1.17 +        GET_XEN_GUEST_HANDLE(extent_start, xmml->extent_start);
    1.18          safe_munlock(extent_start,
    1.19                       xmml->max_extents * sizeof(unsigned long));
    1.20          break;