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] [xen-unstable] xm: Add accel option to xm network-attach

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xm: Add accel option to xm network-attach.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 04 Oct 2007 17:41:37 -0700
Delivery-date: Thu, 04 Oct 2007 18:30:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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 Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1191419791 -3600
# Node ID a5b239d68cc28863335a2e503185bbacbbc3105a
# Parent  33107700062c4442ac66866120d3cfb6bc87a229
xm: Add accel option to xm network-attach.
Signed-off-by: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>
---
 tools/python/xen/xm/main.py |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff -r 33107700062c -r a5b239d68cc2 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Wed Oct 03 14:41:28 2007 +0100
+++ b/tools/python/xen/xm/main.py       Wed Oct 03 14:56:31 2007 +0100
@@ -163,7 +163,8 @@ SUBCOMMAND_HELP = {
                         'List virtual block devices for a domain.'),
     'network-attach':  ('<Domain> [type=<type>] [mac=<mac>] [bridge=<bridge>] '
                         '[ip=<ip>] [script=<script>] [backend=<BackDomain>] '
-                        '[vifname=<name>] [rate=<rate>] [model=<model>]',
+                        '[vifname=<name>] [rate=<rate>] [model=<model>]'
+                        '[accel=<accel>]',
                         'Create a new virtual network device.'),
     'network-detach':  ('<Domain> <DevId> [-f|--force]',
                         'Destroy a domain\'s virtual network device.'),
@@ -2132,12 +2133,12 @@ def xm_block_configure(args):
 
 
 def xm_network_attach(args):
-    arg_check(args, 'network-attach', 1, 10)
+    arg_check(args, 'network-attach', 1, 11)
 
     dom = args[0]
     vif = ['vif']
     vif_params = ['type', 'mac', 'bridge', 'ip', 'script', \
-                  'backend', 'vifname', 'rate', 'model']
+                  'backend', 'vifname', 'rate', 'model', 'accel']
 
     if serverType == SERVER_XEN_API:     
         vif_record = {
@@ -2184,7 +2185,9 @@ def xm_network_attach(args):
             'rate':
                 lambda x: set(['qos_algorithm_params', 'rate'], x),
             'model':
-                lambda x: None
+                lambda x: None,
+            'accel':
+                lambda x: set(['other_config', 'accel'], x)
             }
             
         for a in args[1:]:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xm: Add accel option to xm network-attach., Xen patchbot-unstable <=