]> 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)
commitd7016d9c08c16f822bbb257f9575a2db804ccfba
treebc3d42fb3a4723eb02efb161fd8f2a2bff77e5d6
parent26a1537aa06231c2fdd7991b24efe711a95a79b4
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