Skip to content

Commit e243ae9

Browse files
jbeulichjgross1
authored andcommitted
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 <[email protected]> Reviewed-by: Stefano Stabellini <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
1 parent 9074c79 commit e243ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ config PCI_PF_STUB
110110

111111
config XEN_PCIDEV_FRONTEND
112112
tristate "Xen PCI Frontend"
113-
depends on X86 && XEN
113+
depends on XEN_PV
114114
select PCI_XEN
115115
select XEN_XENBUS_FRONTEND
116116
default y

0 commit comments

Comments
 (0)