Skip to content

Commit 58ad137

Browse files
committed
vdpa: make vhost, virtio depend on menu
If user did not configure any vdpa drivers, neither vhost nor virtio vdpa are going to be useful. So there's no point in prompting for these and selecting vdpa core automatically. Simplify configuration by making virtio and vhost vdpa drivers depend on vdpa menu entry. Once done, we no longer need a separate menu entry, so also get rid of this. While at it, fix up the IFC entry: VDPA->vDPA for consistency with other places. Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]>
1 parent 425a507 commit 58ad137

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

drivers/vdpa/Kconfig

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
config VDPA
3-
tristate
2+
menuconfig VDPA
3+
tristate "vDPA drivers"
44
help
55
Enable this module to support vDPA device that uses a
66
datapath which complies with virtio specifications with
77
vendor specific control path.
88

9-
menuconfig VDPA_MENU
10-
bool "VDPA drivers"
11-
default n
12-
13-
if VDPA_MENU
9+
if VDPA
1410

1511
config VDPA_SIM
1612
tristate "vDPA device simulator"
1713
depends on RUNTIME_TESTING_MENU && HAS_DMA
18-
select VDPA
1914
select VHOST_RING
2015
default n
2116
help
@@ -24,14 +19,13 @@ config VDPA_SIM
2419
development of vDPA.
2520

2621
config IFCVF
27-
tristate "Intel IFC VF VDPA driver"
22+
tristate "Intel IFC VF vDPA driver"
2823
depends on PCI_MSI
29-
select VDPA
3024
default n
3125
help
3226
This kernel module can drive Intel IFC VF NIC to offload
3327
virtio dataplane traffic to hardware.
3428
To compile this driver as a module, choose M here: the module will
3529
be called ifcvf.
3630

37-
endif # VDPA_MENU
31+
endif # VDPA

drivers/vhost/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ config VHOST_VDPA
6565
tristate "Vhost driver for vDPA-based backend"
6666
depends on EVENTFD
6767
select VHOST
68-
select VDPA
68+
depends on VDPA
6969
help
7070
This kernel module can be loaded in host kernel to accelerate
7171
guest virtio devices with the vDPA-based backends.

drivers/virtio/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ config VIRTIO_PCI_LEGACY
4545

4646
config VIRTIO_VDPA
4747
tristate "vDPA driver for virtio devices"
48-
select VDPA
48+
depends on VDPA
4949
select VIRTIO
5050
help
5151
This driver provides support for virtio based paravirtual

0 commit comments

Comments
 (0)