ia64/xen-unstable

changeset 19457:9202d800b06f

xend: Allow user to specify vslots 0 - 1f for static pass-through

The current parser only accepts vslots 0 - f (hex), that is, only
slots that have one digit. This is an omission as two digit slots
with a leading 0 or 1 are also valid, representing the
full range of slots 0 - 1f.

Thanks to Dexuan Cui for spotting this problem.

Cc: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 31 11:40:28 2009 +0100 (2009-03-31)
parents 1f893d68a6ad
children 80ecfc3d6a8e
files tools/python/xen/xm/create.py
line diff
     1.1 --- a/tools/python/xen/xm/create.py	Tue Mar 31 11:39:32 2009 +0100
     1.2 +++ b/tools/python/xen/xm/create.py	Tue Mar 31 11:40:28 2009 +0100
     1.3 @@ -1057,7 +1057,7 @@ def preprocess_pci(vals):
     1.4                  r"(?P<bus>[0-9a-fA-F]{1,2})[:,]" + \
     1.5                  r"(?P<slot>[0-9a-fA-F]{1,2})[.,]" + \
     1.6                  r"(?P<func>[0-7])" + \
     1.7 -                r"(@(?P<vslot>[0-9a-fA-F]))?" + \
     1.8 +                r"(@(?P<vslot>[01]?[0-9a-fA-F]))?" + \
     1.9                  r"(,(?P<opts>.*))?$", \
    1.10                  pci_dev_str)
    1.11          if pci_match!=None: