diff options
author | Ohad Ben-Cohen <ohad@wizery.com> | 2011-07-05 10:06:14 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-07-23 02:50:30 -0400 |
commit | e72542191cbba4cf7fda21cb22e26b42d7415daf (patch) | |
tree | 95fc296d2d0d8c9b52183bd664b4ea0b662bb866 /arch/mips/Kconfig | |
parent | bbd9d6f7fbb0305c9a592bf05a32e87eb364a4ff (diff) |
virtio: expose for non-virtualization users too
virtio has been so far used only in the context of virtualization,
and the virtio Kconfig was sourced directly by the relevant arch
Kconfigs when VIRTUALIZATION was selected.
Now that we start using virtio for inter-processor communications,
we need to source the virtio Kconfig outside of the virtualization
scope too.
Moreover, some architectures might use virtio for both virtualization
and inter-processor communications, so directly sourcing virtio
might yield unexpected results due to conflicting selections.
The simple solution offered by this patch is to always source virtio's
Kconfig in drivers/Kconfig, and remove it from the appropriate arch
Kconfigs. Additionally, a virtio menu entry has been added so virtio
drivers don't show up in the general drivers menu.
This way anyone can use virtio, though it's arguably less accessible
(and neat!) for virtualization users now.
Note: some architectures (mips and sh) seem to have a VIRTUALIZATION
menu merely for sourcing virtio's Kconfig, so that menu is removed too.
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r-- | arch/mips/Kconfig | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 6cb60adb7b30..177cdaf83564 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -2493,20 +2493,4 @@ source "security/Kconfig" | |||
2493 | 2493 | ||
2494 | source "crypto/Kconfig" | 2494 | source "crypto/Kconfig" |
2495 | 2495 | ||
2496 | menuconfig VIRTUALIZATION | ||
2497 | bool "Virtualization" | ||
2498 | default n | ||
2499 | ---help--- | ||
2500 | Say Y here to get to see options for using your Linux host to run other | ||
2501 | operating systems inside virtual machines (guests). | ||
2502 | This option alone does not add any kernel code. | ||
2503 | |||
2504 | If you say N, all options in this submenu will be skipped and disabled. | ||
2505 | |||
2506 | if VIRTUALIZATION | ||
2507 | |||
2508 | source drivers/virtio/Kconfig | ||
2509 | |||
2510 | endif # VIRTUALIZATION | ||
2511 | |||
2512 | source "lib/Kconfig" | 2496 | source "lib/Kconfig" |