From: Keir Fraser Date: Tue, 31 Mar 2009 10:40:28 +0000 (+0100) Subject: xend: Allow user to specify vslots 0 - 1f for static pass-through X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13989^2~53 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7fdd501f11f56e7a4a0b8b9feac5d182f9ee3937;p=xen.git 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 Signed-off-by: Simon Horman --- diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 8ad0fe6dfd..f5b505270b 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -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: