]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: expose for non-virtualization users too
authorOhad Ben-Cohen <ohad@wizery.com>
Tue, 5 Jul 2011 14:06:14 +0000 (17:06 +0300)
committerRusty Russell <rusty@rustcorp.com.au>
Sat, 23 Jul 2011 06:50:30 +0000 (16:20 +0930)
commite4729010c2ca4f662cf9e7c1a667151d3837a0b5
tree95fc296d2d0d8c9b52183bd664b4ea0b662bb866
parent660957d8e044f46b899b07e422264aac5ccad201
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>
arch/ia64/kvm/Kconfig
arch/mips/Kconfig
arch/powerpc/kvm/Kconfig
arch/s390/kvm/Kconfig
arch/sh/Kconfig
arch/tile/kvm/Kconfig
arch/x86/kvm/Kconfig
drivers/Kconfig
drivers/virtio/Kconfig