ia64/xen-unstable

changeset 19755:08de8ec655c2

xend: pass-through: fix typo: spx -> sxp

Signed-off-by: Simon Horman <horms@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 16 11:35:16 2009 +0100 (2009-06-16)
parents a5f584c1e2f6
children dce4d6840db1
files tools/python/xen/util/pci.py tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/util/pci.py	Tue Jun 16 11:33:23 2009 +0100
     1.2 +++ b/tools/python/xen/util/pci.py	Tue Jun 16 11:35:16 2009 +0100
     1.3 @@ -124,7 +124,7 @@ def serialise_pci_opts(opts):
     1.4  def split_pci_opts(opts):
     1.5      return map(lambda x: x.split('='), opts.split(','))
     1.6  
     1.7 -def pci_opts_list_to_spx(list):
     1.8 +def pci_opts_list_to_sxp(list):
     1.9      ['dev'] + map(lambda x: ['opts', x], list)
    1.10  
    1.11  def parse_hex(val):
     2.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Tue Jun 16 11:33:23 2009 +0100
     2.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue Jun 16 11:35:16 2009 +0100
     2.3 @@ -39,7 +39,7 @@ from xen.util import asserts, auxbin
     2.4  from xen.util.blkif import blkdev_uname_to_file, blkdev_uname_to_taptype
     2.5  import xen.util.xsm.xsm as security
     2.6  from xen.util import xsconstants
     2.7 -from xen.util.pci import serialise_pci_opts, pci_opts_list_to_spx
     2.8 +from xen.util.pci import serialise_pci_opts, pci_opts_list_to_sxp
     2.9  
    2.10  from xen.xend import balloon, sxp, uuid, image, arch
    2.11  from xen.xend import XendOptions, XendNode, XendConfig
    2.12 @@ -3771,7 +3771,7 @@ class XendDomainInfo:
    2.13          opts_dict = xenapi_pci.get('options')
    2.14          for k in opts_dict.keys():
    2.15              dpci_opts.append([k, opts_dict[k]])
    2.16 -        opts_sxp = pci_opts_list_to_spx(dpci_opts)
    2.17 +        opts_sxp = pci_opts_list_to_sxp(dpci_opts)
    2.18  
    2.19          # Convert xenapi to sxp
    2.20          ppci = XendAPIStore.get(xenapi_pci.get('PPCI'), 'PPCI')