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-devel

[Xen-devel] [PATCH] Optimize pci_convert_sxp_to_dict method

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Optimize pci_convert_sxp_to_dict method
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Tue, 26 Aug 2008 17:58:43 +0900
Delivery-date: Tue, 26 Aug 2008 01:59:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

This patch optimizes pci_convert_sxp_to_dict method in XendConfig.py.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

diff -r 2ec019301ad8 tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py       Thu Aug 21 15:18:05 2008 +0100
+++ b/tools/python/xen/xend/XendConfig.py       Tue Aug 26 15:01:36 2008 +0900
@@ -1538,9 +1538,10 @@ class XendConfig(dict):
                     pci_dev_info[opt] = val
                 except TypeError:
                     pass
-                # append uuid for each pci device.
-                dpci_uuid = pci_dev_info.get('uuid', uuid.createString())
-                pci_dev_info['uuid'] = dpci_uuid
+            # append uuid for each pci device.
+            dpci_uuid = pci_dev_info.get('uuid', uuid.createString())
+            pci_dev_info['uuid'] = dpci_uuidi
+
             pci_devs.append(pci_dev_info)
         dev_config['devs'] = pci_devs 
 



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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Optimize pci_convert_sxp_to_dict method, Masaki Kanno <=