All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: Stefan Berger <stefanb@us.ibm.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH][VTPM] Show vtpm with xm
Date: Tue, 31 Jan 2006 15:03:54 -0600	[thread overview]
Message-ID: <43DFD0BA.2010801@us.ibm.com> (raw)
In-Reply-To: <OFF335442D.1F46C17E-ON85257107.006B56F3-85257107.006BA785@us.ibm.com>

Stefan Berger wrote:

>
> Anthony,
>
>    the other format that is supported for printout in the sxp class is 
> to print xml-style. Would that be better or is a format of
>
> attribute = value
>
> more friendly? The problem with attributes and values is that nesting 
> - as it can obviously be done with S-Expression - is not so convenient 
> to display.

Well, I was just thinking something that's more user oriented like the 
output of xm-list.

Regards,

Anthony Liguori

> Regards,
>     Stefan
>
> aliguori@us.ltcfwd.linux.ibm.com wrote on 01/30/2006 10:01:47 PM:
>
> > I know all of the other devices spit out S-Expression outputs but
> > perhaps we can spit something a little more friendly out.
> >
> > Regards,
> >
> > Anthony Liguori
> >
> > Stefan Berger wrote:
> >
> > >The attached patch adds 'xm vtpm-list <DomId>' functionality.
> > >
> > >Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
> > >
> > >
> > >  
> > >
> > 
> >------------------------------------------------------------------------
> > >
> > >Index: root/xen-unstable.hg/tools/python/xen/xm/main.py
> > >===================================================================
> > >--- root.orig/xen-unstable.hg/tools/python/xen/xm/main.py
> > >+++ root/xen-unstable.hg/tools/python/xen/xm/main.py
> > >@@ -101,7 +101,7 @@ network_list_help = "network-list <DomId
> > > vnet_list_help = "vnet-list [-l|--long]            list vnets"
> > > vnet_create_help = "vnet-create <config>             create a vnet
> > from a config file"
> > > vnet_delete_help = "vnet-delete <vnetid>             delete a vnet"
> > >-
> > >+vtpm_list_help = "vtpm-list <DomId>                list virtual 
> TPM devices"
> > >
> > > short_command_list = [
> > >     "console",
> > >@@ -165,6 +165,7 @@ device_commands = [
> > >     "network-attach",
> > >     "network-detach",
> > >     "network-list",
> > >+    "vtpm-list",
> > >     ]
> > >
> > > vnet_commands = [
> > >@@ -699,6 +700,14 @@ def xm_block_list(args):
> > >         sxp.show(x)
> > >         print
> > >
> > >+def xm_vtpm_list(args):
> > >+    arg_check(args, "vtpm-list", 1)
> > >+    dom = args[0]
> > >+    from xen.xend.XendClient import server
> > >+    for x in server.xend_domain_devices(dom, 'vtpm'):
> > >+        sxp.show(x)
> > >+        print
> > >+
> > > def xm_block_attach(args):
> > >     arg_check(args, 'block-attach', 4, 5)
> > >
> > >@@ -834,6 +843,8 @@ commands = {
> > >     "vnet-list": xm_vnet_list,
> > >     "vnet-create": xm_vnet_create,
> > >     "vnet-delete": xm_vnet_delete,
> > >+    # vtpm
> > >+    "vtpm-list": xm_vtpm_list,
> > >     }
> > >
> > > ## The commands supported by a separate argument parser in xend.xm.
> > >  
> > >
> > 
> >------------------------------------------------------------------------
> > >
> > >_______________________________________________
> > >Xen-devel mailing list
> > >Xen-devel@lists.xensource.com
> > >http://lists.xensource.com/xen-devel
> > >  
> > >
> >

  reply	other threads:[~2006-01-31 21:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-31  2:58 [PATCH][VTPM] Show vtpm with xm Stefan Berger
2006-01-31  3:01 ` Anthony Liguori
2006-01-31 19:37   ` Stefan Berger
2006-01-31 21:03     ` Anthony Liguori [this message]
2006-02-10  1:17 ` Ewan Mellor

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=43DFD0BA.2010801@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=stefanb@us.ibm.com \
    --cc=xen-devel@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.