diff options
author | Vincent Legoll <vincent.legoll@gmail.com> | 2018-01-07 06:33:56 -0500 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-02-01 09:26:43 -0500 |
commit | 7b95fec6d2ffa53f4a8d637b0f223644d458ea4e (patch) | |
tree | c07d62d163c2ab68aff7a2d9ecaa9b1c83a87f4a | |
parent | a311650ae6ad0c169ade2583f78aa519878ea13f (diff) |
virtio: make VIRTIO a menuconfig to ease disabling it all
No need to get into the submenu to disable all VIRTIO-related
config entries.
This makes it easier to disable all VIRTIO config options
without entering the submenu. It will also enable one
to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change
the config dependencies.
Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r-- | drivers/virtio/Kconfig | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig index cff773f15b7e..35897649c24f 100644 --- a/drivers/virtio/Kconfig +++ b/drivers/virtio/Kconfig | |||
@@ -5,7 +5,11 @@ config VIRTIO | |||
5 | bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG | 5 | bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG |
6 | or CONFIG_S390_GUEST. | 6 | or CONFIG_S390_GUEST. |
7 | 7 | ||
8 | menu "Virtio drivers" | 8 | menuconfig VIRTIO_MENU |
9 | bool "Virtio drivers" | ||
10 | default y | ||
11 | |||
12 | if VIRTIO_MENU | ||
9 | 13 | ||
10 | config VIRTIO_PCI | 14 | config VIRTIO_PCI |
11 | tristate "PCI driver for virtio devices" | 15 | tristate "PCI driver for virtio devices" |
@@ -79,4 +83,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES | |||
79 | 83 | ||
80 | If unsure, say 'N'. | 84 | If unsure, say 'N'. |
81 | 85 | ||
82 | endmenu | 86 | endif # VIRTIO_MENU |