ia64/xen-unstable

changeset 1046:c58d699fc01b

bitkeeper revision 1.685 (400ed81cDUJ0NzxWWYhOS6J0LBNivg)

domain.c, dom0_ops.c, xc_linux_save.c:
A few small fixes.
author kaf24@scramble.cl.cam.ac.uk
date Wed Jan 21 19:50:52 2004 +0000 (2004-01-21)
parents 0e414c9b0f17
children 4ec435d7c966
files tools/xc/lib/xc_linux_save.c xen/common/dom0_ops.c xen/common/domain.c
line diff
     1.1 --- a/tools/xc/lib/xc_linux_save.c	Tue Jan 20 00:33:19 2004 +0000
     1.2 +++ b/tools/xc/lib/xc_linux_save.c	Wed Jan 21 19:50:52 2004 +0000
     1.3 @@ -161,7 +161,12 @@ int xc_linux_save(int xc_handle,
     1.4  
     1.5          op.cmd = DOM0_STOPDOMAIN;
     1.6          op.u.stopdomain.domain = domid;
     1.7 -        (void)do_dom0_op(xc_handle, &op);
     1.8 +        if ( do_dom0_op(xc_handle, &op) != 0 )
     1.9 +        {
    1.10 +            we_stopped_it = 0;
    1.11 +            PERROR("Stopping target domain failed");
    1.12 +            goto out;
    1.13 +        }
    1.14  
    1.15          sleep(1);
    1.16      }
     2.1 --- a/xen/common/dom0_ops.c	Tue Jan 20 00:33:19 2004 +0000
     2.2 +++ b/xen/common/dom0_ops.c	Wed Jan 21 19:50:52 2004 +0000
     2.3 @@ -354,6 +354,8 @@ long do_dom0_op(dom0_op_t *u_dom0_op)
     2.4  
     2.5          if ( likely(get_page(page, p)) )
     2.6          {
     2.7 +            ret = 0;
     2.8 +
     2.9              op.u.getpageframeinfo.type = NONE;
    2.10  
    2.11              if ( (page->type_and_flags & PGT_count_mask) != 0 )
     3.1 --- a/xen/common/domain.c	Tue Jan 20 00:33:19 2004 +0000
     3.2 +++ b/xen/common/domain.c	Wed Jan 21 19:50:52 2004 +0000
     3.3 @@ -205,6 +205,9 @@ long stop_other_domain(unsigned int dom)
     3.4      unsigned long cpu_mask;
     3.5      struct task_struct *p;
     3.6      
     3.7 +    if ( dom == 0 )
     3.8 +        return -EINVAL;
     3.9 +
    3.10      p = find_domain_by_id (dom);
    3.11      if ( p == NULL) return -ESRCH;
    3.12