direct-io.hg

changeset 6472:7069f0de0cce

Fix memory_op domid parameter in dom0 tools.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Aug 30 13:56:08 2005 +0000 (2005-08-30)
parents 1f46fafb7221
children 7296ed60874f
files tools/libxc/xc_domain.c tools/libxc/xc_linux_restore.c
line diff
     1.1 --- a/tools/libxc/xc_domain.c	Tue Aug 30 13:16:05 2005 +0000
     1.2 +++ b/tools/libxc/xc_domain.c	Tue Aug 30 13:56:08 2005 +0000
     1.3 @@ -269,7 +269,7 @@ int xc_domain_memory_increase_reservatio
     1.4      struct xen_memory_reservation reservation = {
     1.5          .nr_extents   = npages,
     1.6          .extent_order = 0,
     1.7 -        .domid        = DOMID_SELF
     1.8 +        .domid        = domid
     1.9      };
    1.10  
    1.11      err = xc_memory_op(xc_handle, XENMEM_increase_reservation, &reservation);
     2.1 --- a/tools/libxc/xc_linux_restore.c	Tue Aug 30 13:16:05 2005 +0000
     2.2 +++ b/tools/libxc/xc_linux_restore.c	Tue Aug 30 13:56:08 2005 +0000
     2.3 @@ -447,7 +447,7 @@ int xc_linux_restore(int xc_handle, int 
     2.4                  .extent_start = pfntab,
     2.5                  .nr_extents   = count,
     2.6                  .extent_order = 0,
     2.7 -                .domid        = DOMID_SELF
     2.8 +                .domid        = dom
     2.9              };
    2.10  	    if ( (rc = xc_memory_op(xc_handle,
    2.11                                      XENMEM_decrease_reservation,