]> www.infradead.org Git - users/jedix/linux-maple.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>
Wed, 19 Sep 2012 14:55:52 +0000 (10:55 -0400)
commit274cedc57594e2a9a3b04e0bfc277c7aeb79b6a8
tree6ad5dd288c2a286931acdd237479ef4c062c0d7f
parent7f030d9a2450a9c215daa5e8aae9dc56ed558c79
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>
(cherry picked from commit c3cb4709809e655a4ba5a716086c8bc5bbbbccdb)
drivers/xen/xen-pciback/pci_stub.c