direct-io.hg

changeset 53:60f4488eb462

bitkeeper revision 1.7.3.30 (3e005dc6YHCLIwxSzkXDeRhGTRsFbQ)

uninstumenting code
author lynx@idefix.cl.cam.ac.uk
date Wed Dec 18 11:36:38 2002 +0000 (2002-12-18)
parents 50cac7372994
children de8bbab0fe86
files xen-2.4.16/common/dom0_ops.c
line diff
     1.1 --- a/xen-2.4.16/common/dom0_ops.c	Wed Dec 18 11:11:24 2002 +0000
     1.2 +++ b/xen-2.4.16/common/dom0_ops.c	Wed Dec 18 11:36:38 2002 +0000
     1.3 @@ -75,14 +75,14 @@ long do_dom0_op(dom0_op_t *u_dom0_op)
     1.4          /* if we are not booting dom 0 than only mem 
     1.5           * needs to be allocated
     1.6           */
     1.7 -        //if(dom != 0){
     1.8 -        //    if(alloc_new_dom_mem(p, op.u.newdomain.memory_kb) != 0){
     1.9 -        //        ret = -1;
    1.10 -        //        break;
    1.11 -        //    }
    1.12 -        //    ret = p->domain;
    1.13 -        //    break;
    1.14 -        //}
    1.15 +        if(dom != 0){
    1.16 +            if(alloc_new_dom_mem(p, op.u.newdomain.memory_kb) != 0){
    1.17 +                ret = -1;
    1.18 +                break;
    1.19 +            }
    1.20 +            ret = p->domain;
    1.21 +            break;
    1.22 +        }
    1.23  
    1.24          /* executed only in case of domain 0 */
    1.25          ret = setup_guestos(p, &op.u.newdomain);    /* Load guest OS into @p */