PCI: only build xen-pcifront in PV-enabled environments
authorJan Beulich <jbeulich@suse.com>
Fri, 17 Sep 2021 10:48:03 +0000 (12:48 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 20 Sep 2021 15:01:11 +0000 (17:01 +0200)
commite243ae953b5926eba1a8fbea64cbf68094f86a44
tree91a2dc9134b6b729ee3787aa55400c96c0b72ddd
parent9074c79b62b6e0d91d7f716c6e4e9968eaf9e043
PCI: only build xen-pcifront in PV-enabled environments

The driver's module init function, pcifront_init(), invokes
xen_pv_domain() first thing. That construct produces constant "false"
when !CONFIG_XEN_PV. Hence there's no point building the driver in
non-PV configurations.

Drop the (now implicit and generally wrong) X86 dependency: At present,
XEN_PV can only be set when X86 is also enabled. In general an
architecture supporting Xen PV (and PCI) would want to have this driver
built.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/3a7f6c9b-215d-b593-8056-b5fe605dafd7@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/pci/Kconfig