xen-pciback: support wild cards in slot specifications
authorJan Beulich <JBeulich@suse.com>
Tue, 18 Sep 2012 11:29:03 +0000 (12:29 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 18 Sep 2012 14:44:17 +0000 (10:44 -0400)
commitc3cb4709809e655a4ba5a716086c8bc5bbbbccdb
treebc3d42fb3a4723eb02efb161fd8f2a2bff77e5d6
parentecc635f90adfe1b7cd5fd354f49edfbf24aa4e3e
xen-pciback: support wild cards in slot specifications

Particularly for hiding sets of SR-IOV devices, specifying them all
individually is rather cumbersome. Therefore, allow function and slot
numbers to be replaced by a wildcard character ('*').

Unfortunately this gets complicated by the in-kernel sscanf()
implementation not being really standard conformant - matching of
plain text tails cannot be checked by the caller (a patch to overcome
this will be sent shortly, and a follow-up patch for simplifying the
code is planned to be sent when that fixed went upstream).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xen-pciback/pci_stub.c