All of lore.kernel.org
 help / color / mirror / Atom feed
From: Syunsuke HAYASHI <syunsuke@jp.fujitsu.com>
To: xen-users@lists.xensource.com, xen-devel@lists.xensource.com
Subject: Re: [Xen-devel] Loading ACM policy in XSM
Date: Thu, 30 Aug 2007 13:49:37 +0900	[thread overview]
Message-ID: <46D64C61.90503@jp.fujitsu.com> (raw)
In-Reply-To: <OF6ACB26E8.BD400C9D-ON85257346.001BFC86-07257346.001C3F92@us.ibm.com>

Hi, Stefan.

I tested as you said.

■"Module/example.client_b1.bin" is written in grub.conf
-----------------------------------------------------------------------
# xm list --label
Name                                ID   Mem VCPUs      State   Time(s) 
Label
Domain-0                             0  1024     4     r-----     47.7 
unlabeled

# xm getpolicy
Error: xm needs to be configured to use the xen-api.
Usage: xm getpolicy [options]

Get the policy of the system.

     Usage: xm getpolicy [options]

     The following options are defined
       --dumpxml     Display the XML of the policy

     Get the policy managed by xend.
-----------------------------------------------------------------------

■"Module/example.client_b1.bin" is not written in grub.conf
-----------------------------------------------------------------------
#xm list --label
Name                                ID   Mem VCPUs      State   Time(s) 
Label
Domain-0                             0  1024     4     r-----     46.5 
  DEFAULT

#xm getpolicy
Error: xm needs to be configured to use the xen-api.
Usage: xm getpolicy [options]

Get the policy of the system.

     Usage: xm getpolicy [options]

     The following options are defined
       --dumpxml     Display the XML of the policy

     Get the policy managed by xend.

-----------------------------------------------------------------------
Is it good in this?

Thanks,

Syunsuke HAYASHI
> 
> Syunsuke HAYASHI <syunsuke@jp.fujitsu.com> wrote on 08/28/2007 09:20:44 PM:
> 
>  > Hi,Stefan
>  > Thank you for the help.
>  >
>  > I was not describing an ssidref=... in grub.conf.
>  > I show grub.conf and dmesg when I execute "xm chgpolicy
>  > example.client_v1" command and reboot.
>  >
>  > 
> ----------------------------grub.conf--------------------------------------
>  > # grub.conf generated by anaconda
>  >    module /example.client_v1.bin
> 
> looks good
>  >
>  >
>  > 
> -----------------------------dmesg----------------------------------------
>  >   __  __            _____  ___                     _        _     _
> [...]
>  > (XEN) Brought up 4 CPUs
>  > (XEN) Policy len  0x168, start at 3ffff000 - module 2.
>  > (XEN) acm_set_policy_reference: Activating policy example.client_v1
>  > (XEN) acm_init: Enforcing CHINESE WALL AND SIMPLE TYPE ENFORCEMENT boot
>  > policy.
> 
> So at this point the policy is loaded.
> What does 'xm getpolicy' show?
> 
> You seem to have XSM as a patch applied to Xen - what happens if you do 
> this without XSM applied?
> 
>    Stefan
> 
>  > [...]
>  > Is it good in this ?
>  >
>  > Syunsuke HAYASHI
>  > >
>  > > xen-devel-bounces@lists.xensource.com wrote on 08/27/2007 04:00:14 AM:
>  > >
>  > >  > Hi,
>  > >  > I have a problem about ACM module(hg.15730)
>  > >  > I want to label Domain-0.
>  > >  > I read xen user's manual v3.0 and "man xm" information.
>  > >  > ACM document mentions how to label Domain-0.
>  > >  > But I couldn't add the label when I tried the following steps.
>  > >  >
>  > >  >    (test1)
>  > >  >    #xm makepolicy example.client_v1
>  > >  >    #xm cfgbootpolicy example.client_v1
>  > >  >    #reboot
>  > >  >
>  > >  >    (test2)
>  > >  >    #xm setpolicy ACM example.client_v1
>  > >  >    #xm activatepolicy --boot
>  > >  >
>  > >  >    (result)
>  > >  >    [root@bx607 ~]# xm list --label
>  > >  >    Name     ID  Mem    VCPUs    State   Time(s) Label
>  > >  >    Domain-0  0  1024     4     r-----    105.1 unlabeled
>  > >  >
>  > >  > So,I tried to use "xm addlabel" command.
>  > >  >
>  > >  >    #xm makepolicy example.client_v1
>  > >  >    #xm addlabel dom_SystemManagement mgt Domain-0 example.client_v1
>  > >  >
>  > >  > But I couldn't again.
>  > >  >
>  > >  > Is there any good idea ?
>  > >
>  > > Is there an ssidref=... in the 'kernel' line in the grub title you are
>  > > booting? Can you send this line and remove the ssidref=... and try 
> again?
>  > > Otherwise if this is not the case, can you send the content of 'xm 
> dmesg'?
>  > >
>  > >    Stefan
>  > >  >
>  > >  > Thanks,
>  > >  >
>  > >  > Syunsuke HAYASHI
>  > >  >
>  > >  >
>  > >  >
>  > >  >
>  > >  > _______________________________________________
>  > >  > Xen-devel mailing list
>  > >  > Xen-devel@lists.xensource.com
>  > >  > http://lists.xensource.com/xen-devel
>  >

       reply	other threads:[~2007-08-30  4:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <OF6ACB26E8.BD400C9D-ON85257346.001BFC86-07257346.001C3F92@us.ibm.com>
2007-08-30  4:49 ` Syunsuke HAYASHI [this message]
2007-08-27  8:00 Loading ACM policy in XSM Syunsuke HAYASHI
2007-08-28 17:17 ` [Xen-devel] " Stefan Berger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46D64C61.90503@jp.fujitsu.com \
    --to=syunsuke@jp.fujitsu.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-users@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.