]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0086365307fed315c1350bd9009775d0f2473843
treebc3d42fb3a4723eb02efb161fd8f2a2bff77e5d6
parentad92302edbb6e7bacd55c49665e4fa5a8a1aaecf
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