summaryrefslogtreecommitdiff
path: root/drivers/virtio/Kconfig
diff options
context:
space:
mode:
authorPawel Moll <pawel.moll@arm.com>2012-05-09 21:30:16 +0400
committerRusty Russell <rusty@rustcorp.com.au>2012-05-22 06:46:15 +0400
commit81a054ce0b469b66c88e9da6403082759c64bf73 (patch)
tree4736df1e0d7c7d9143a1e6dbbfe8947d8079f934 /drivers/virtio/Kconfig
parentf65ca1dc6a8c81c6bd72297d4399ec5f4c1f3a01 (diff)
downloadlinux-81a054ce0b469b66c88e9da6403082759c64bf73.tar.xz
virtio-mmio: Devices parameter parsing
This patch adds an option to instantiate guest virtio-mmio devices basing on a kernel command line (or module) parameter, for example: virtio_mmio.devices=0x100@0x100b0000:48 Signed-off-by: Pawel Moll <pawel.moll@arm.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio/Kconfig')
-rw-r--r--drivers/virtio/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig
index 1a61939b85fc..f38b17a86c35 100644
--- a/drivers/virtio/Kconfig
+++ b/drivers/virtio/Kconfig
@@ -46,4 +46,15 @@ config VIRTIO_BALLOON
If unsure, say N.
+config VIRTIO_MMIO_CMDLINE_DEVICES
+ bool "Memory mapped virtio devices parameter parsing"
+ depends on VIRTIO_MMIO
+ ---help---
+ Allow virtio-mmio devices instantiation via the kernel command line
+ or module parameters. Be aware that using incorrect parameters (base
+ address in particular) can crash your system - you have been warned.
+ See Documentation/kernel-parameters.txt for details.
+
+ If unsure, say 'N'.
+
endmenu