WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] The attached patch adds 'xm vtpm-list <DomId>' functiona

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] The attached patch adds 'xm vtpm-list <DomId>' functionality.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Feb 2006 02:26:07 +0000
Delivery-date: Fri, 10 Feb 2006 02:38:23 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID e2755215a1e59751360e131bfccb081fdff94525
# Parent  d1596fc2cbaa7ab0396478e7165235f4c5c32a13
The attached patch adds 'xm vtpm-list <DomId>' functionality.

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>

diff -r d1596fc2cbaa -r e2755215a1e5 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Fri Feb 10 01:03:24 2006
+++ b/tools/python/xen/xm/main.py       Fri Feb 10 01:04:24 2006
@@ -101,7 +101,7 @@
 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 @@
     "network-attach",
     "network-detach",
     "network-list",
+    "vtpm-list",
     ]
 
 vnet_commands = [
@@ -696,6 +697,14 @@
     dom = args[0]
     from xen.xend.XendClient import server
     for x in server.xend_domain_devices(dom, 'vbd'):
+        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
 
@@ -834,6 +843,8 @@
     "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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] The attached patch adds 'xm vtpm-list <DomId>' functionality., Xen patchbot -unstable <=