direct-io.hg

changeset 5521:f2b4ab649a13

bitkeeper revision 1.1723 (42b7c4f7lKvZiHctN9YxRzuWreG0iQ)

quiet xm ssid-ref output for now - use policy tool or -l for details
author smh22@firebug.cl.cam.ac.uk
date Tue Jun 21 07:42:47 2005 +0000 (2005-06-21)
parents 7d9339b717d6
children 2387d992079a
files docs/misc/shype4xen_readme.txt tools/python/xen/xm/main.py
line diff
     1.1 --- a/docs/misc/shype4xen_readme.txt	Tue Jun 21 07:07:48 2005 +0000
     1.2 +++ b/docs/misc/shype4xen_readme.txt	Tue Jun 21 07:42:47 2005 +0000
     1.3 @@ -35,16 +35,6 @@ When you apply the patches and startup x
     1.4  difference because the default policy is the "NULL" policy, which as the name 
     1.5  implies does not enforce anything.
     1.6  
     1.7 -However, when you try
     1.8 -
     1.9 -[root@laptop policy]# xm list
    1.10 -Name              Id  Mem(MB)  CPU  State  Time(s)  Console  SSID-REF
    1.11 -Domain-0           0      620   0  r----     25.6            default
    1.12 -
    1.13 -You might detect a new parameter "SSID-REF" displayed for domains. This 
    1.14 -parameter describes the subject security identifier reference of the domain. It 
    1.15 -is shown as "default" since there is no policy to be enforced.
    1.16 -
    1.17  To display the currently enforced policy, use the policy tool under xeno-
    1.18  unstable.bk/tools/policy: policy_tool getpolicy. You should see output like the 
    1.19  one below.
    1.20 @@ -346,7 +336,7 @@ First start xmsec1: xm create -c xmsec1 
    1.21  
    1.22  Then
    1.23  [root@laptop policy]# xm list 
    1.24 -Name              Id  Mem(MB)  CPU  State  Time(s)  Console  SSID-REF
    1.25 +Name              Id  Mem(MB)  CPU  State  Time(s)  Console  
    1.26  Domain-0           0      620   0  r----     42.3            s:00/p:00
    1.27  xmnosec            1        9   0  -b---      0.3    9601    s:00/p:05
    1.28  xmsec1             2        9   0  -b---      0.2    9602    s:01/p:01
    1.29 @@ -453,7 +443,7 @@ Linux version 2.6.11-xenU (root@laptop.h
    1.30  .
    1.31  .
    1.32  [root@laptop policy]# xm list
    1.33 -Name              Id  Mem(MB)  CPU  State  Time(s)  Console  SSID-REF
    1.34 +Name              Id  Mem(MB)  CPU  State  Time(s)  Console  
    1.35  Domain-0           0      620   0  r----     71.7            s:00/p:00
    1.36  xmsec1             1        9   0  -b---      0.3    9601    s:01/p:01
    1.37  xmsec2             2        7   0  -b---      0.3    9602    s:02/p:02   << our domain runs both policies with ssidref 2
    1.38 @@ -577,4 +567,4 @@ is that policy files/management should b
    1.39  Our policy interface enables managers to create a single binary policy file in a trusted
    1.40  environment and distributed it to multiple systems for enforcement.
    1.41  
    1.42 -====================end-of file=======================================
    1.43 \ No newline at end of file
    1.44 +====================end-of file=======================================
     2.1 --- a/tools/python/xen/xm/main.py	Tue Jun 21 07:07:48 2005 +0000
     2.2 +++ b/tools/python/xen/xm/main.py	Tue Jun 21 07:42:47 2005 +0000
     2.3 @@ -383,7 +383,7 @@ class ProgList(Prog):
     2.4              self.brief_list(doms)
     2.5  
     2.6      def brief_list(self, doms):
     2.7 -        print 'Name              Id  Mem(MB)  CPU VCPU(s)  State  Time(s)  Console  SSID-REF'
     2.8 +        print 'Name              Id  Mem(MB)  CPU VCPU(s)  State  Time(s)  Console'
     2.9          for dom in doms:
    2.10              info = server.xend_domain(dom)
    2.11              d = {}
    2.12 @@ -404,7 +404,7 @@ class ProgList(Prog):
    2.13                  d['ssidref2'] = (int(sxp.child_value(info, 'ssidref', '-1')) >> 16) & 0xffff
    2.14                  print ("%(name)-16s %(dom)3d  %(mem)7d  %(cpu)3d  %(vcpus)5d   %(state)5s  %(cpu_time)7.1f     %(port)4s    s:%(ssidref2)02x/p:%(ssidref1)02x" % d)
    2.15              else:
    2.16 -                print ("%(name)-16s %(dom)3d  %(mem)7d  %(cpu)3d  %(vcpus)5d   %(state)5s  %(cpu_time)7.1f     %(port)4s     default" % d)
    2.17 +                print ("%(name)-16s %(dom)3d  %(mem)7d  %(cpu)3d  %(vcpus)5d   %(state)5s  %(cpu_time)7.1f     %(port)4s" % d)
    2.18  
    2.19      def show_vcpus(self, doms):
    2.20          print 'Name              Id  VCPU  CPU  CPUMAP'