ia64/xen-unstable

changeset 11076:108c05a9f706

[LIBXC] replace tabs with spaces
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author kfraser@localhost.localdomain
date Thu Aug 10 10:52:46 2006 +0100 (2006-08-10)
parents f393ced88d14
children 9d4fa3cf4481
files tools/python/xen/lowlevel/xc/xc.c
line diff
     1.1 --- a/tools/python/xen/lowlevel/xc/xc.c	Thu Aug 10 10:47:37 2006 +0100
     1.2 +++ b/tools/python/xen/lowlevel/xc/xc.c	Thu Aug 10 10:52:46 2006 +0100
     1.3 @@ -165,8 +165,8 @@ static PyObject *pyxc_vcpu_setaffinity(X
     1.4  }
     1.5  
     1.6  static PyObject *pyxc_domain_setcpuweight(XcObject *self,
     1.7 -					  PyObject *args,
     1.8 -					  PyObject *kwds)
     1.9 +                                          PyObject *args,
    1.10 +                                          PyObject *kwds)
    1.11  {
    1.12      uint32_t dom;
    1.13      float cpuweight = 1;
    1.14 @@ -334,29 +334,29 @@ static PyObject *pyxc_linux_build(XcObje
    1.15  
    1.16      static char *kwd_list[] = { "dom", "store_evtchn",
    1.17                                  "console_evtchn", "image",
    1.18 -				/* optional */
    1.19 -				"ramdisk", "cmdline", "flags",
    1.20 -				"features", NULL };
    1.21 +                                /* optional */
    1.22 +                                "ramdisk", "cmdline", "flags",
    1.23 +                                "features", "arch", NULL };
    1.24  
    1.25      if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiis|ssis", kwd_list,
    1.26                                        &dom, &store_evtchn,
    1.27 -				      &console_evtchn, &image,
    1.28 -				      /* optional */
    1.29 -				      &ramdisk, &cmdline, &flags,
    1.30 -				      &features) )
    1.31 +                                      &console_evtchn, &image,
    1.32 +                                      /* optional */
    1.33 +                                      &ramdisk, &cmdline, &flags,
    1.34 +                                      &features) )
    1.35          return NULL;
    1.36  
    1.37      if ( xc_linux_build(self->xc_handle, dom, image,
    1.38                          ramdisk, cmdline, features, flags,
    1.39                          store_evtchn, &store_mfn,
    1.40 -			console_evtchn, &console_mfn) != 0 ) {
    1.41 +                        console_evtchn, &console_mfn) != 0 ) {
    1.42          if (!errno)
    1.43               errno = EINVAL;
    1.44          return PyErr_SetFromErrno(xc_error);
    1.45      }
    1.46      return Py_BuildValue("{s:i,s:i}", 
    1.47 -			 "store_mfn", store_mfn,
    1.48 -			 "console_mfn", console_mfn);
    1.49 +                         "store_mfn", store_mfn,
    1.50 +                         "console_mfn", console_mfn);
    1.51  }
    1.52  
    1.53  static PyObject *pyxc_hvm_build(XcObject *self,
    1.54 @@ -373,16 +373,16 @@ static PyObject *pyxc_hvm_build(XcObject
    1.55      int apic = 0;
    1.56      unsigned long store_mfn = 0;
    1.57  
    1.58 -    static char *kwd_list[] = { "dom", "store_evtchn",
    1.59 -				"memsize", "image", "vcpus", "pae", "acpi", "apic",
    1.60 -				NULL };
    1.61 +    static char *kwd_list[] = { "dom", "store_evtchn", "memsize", "image",
    1.62 +                                "vcpus", "pae", "acpi", "apic",
    1.63 +                                NULL };
    1.64      if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiisiiii", kwd_list,
    1.65                                        &dom, &store_evtchn, &memsize,
    1.66                                        &image, &vcpus, &pae, &acpi, &apic) )
    1.67          return NULL;
    1.68  
    1.69      if ( xc_hvm_build(self->xc_handle, dom, memsize, image,
    1.70 -		      vcpus, pae, acpi, apic, store_evtchn, &store_mfn) != 0 )
    1.71 +                      vcpus, pae, acpi, apic, store_evtchn, &store_mfn) != 0 )
    1.72          return PyErr_SetFromErrno(xc_error);
    1.73  
    1.74      return Py_BuildValue("{s:i}", "store_mfn", store_mfn);
    1.75 @@ -613,7 +613,7 @@ static PyObject *pyxc_physinfo(XcObject 
    1.76      {
    1.77          p+=sprintf(p,"%08x:",info.hw_cap[i]);
    1.78          if(info.hw_cap[i])
    1.79 -	    q=p;
    1.80 +            q=p;
    1.81      }
    1.82      if(q>cpu_cap)
    1.83          *(q-1)=0;
    1.84 @@ -718,8 +718,8 @@ static PyObject *pyxc_sedf_domain_get(Xc
    1.85                           "domain",    domid,
    1.86                           "period",    period,
    1.87                           "slice",     slice,
    1.88 -			 "latency",   latency,
    1.89 -			 "extratime", extratime,
    1.90 +                         "latency",   latency,
    1.91 +                         "extratime", extratime,
    1.92                           "weight",    weight);
    1.93  }
    1.94  
    1.95 @@ -782,8 +782,8 @@ static PyObject *pyxc_domain_setmaxmem(X
    1.96  }
    1.97  
    1.98  static PyObject *pyxc_domain_memory_increase_reservation(XcObject *self,
    1.99 -							 PyObject *args,
   1.100 -							 PyObject *kwds)
   1.101 +                                                         PyObject *args,
   1.102 +                                                         PyObject *kwds)
   1.103  {
   1.104      uint32_t dom;
   1.105      unsigned long mem_kb;
   1.106 @@ -800,8 +800,8 @@ static PyObject *pyxc_domain_memory_incr
   1.107         know what they are doing */
   1.108      nr_extents = (mem_kb / (XC_PAGE_SIZE/1024)) >> extent_order;
   1.109      if ( xc_domain_memory_increase_reservation(self->xc_handle, dom, 
   1.110 -					       nr_extents, extent_order, 
   1.111 -					       address_bits, NULL) )
   1.112 +                                               nr_extents, extent_order, 
   1.113 +                                               address_bits, NULL) )
   1.114          return PyErr_SetFromErrno(xc_error);
   1.115      
   1.116      Py_INCREF(zero);