From: Simon Horman Subject: [patch] xend: Allow user to specify vslots 0 - 1f for static pass-through Date: Thu, 26 Mar 2009 09:55:45 +1100 Message-ID: <20090325225545.GA24011@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ian Jackson , Keir Fraser , Dexuan Cui List-Id: xen-devel@lists.xenproject.org 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 Signed-off-by: Simon Horman Index: xen-unstable.hg/tools/python/xen/xm/create.py =================================================================== --- xen-unstable.hg.orig/tools/python/xen/xm/create.py 2009-03-26 09:45:57.000000000 +1100 +++ xen-unstable.hg/tools/python/xen/xm/create.py 2009-03-26 09:46:01.000000000 +1100 @@ -1057,7 +1057,7 @@ def preprocess_pci(vals): r"(?P[0-9a-fA-F]{1,2})[:,]" + \ r"(?P[0-9a-fA-F]{1,2})[.,]" + \ r"(?P[0-7])" + \ - r"(@(?P[0-9a-fA-F]))?" + \ + r"(@(?P[01]?[0-9a-fA-F]))?" + \ r"(,(?P.*))?$", \ pci_dev_str) if pci_match!=None: