aboutsummaryrefslogtreecommitdiff
path: root/drivers/virtio/Kconfig
diff options
context:
space:
mode:
authorPawel Moll2012-05-09 18:30:16 +0100
committerRusty Russell2012-05-22 12:16:15 +0930
commit81a054ce0b469b66c88e9da6403082759c64bf73 (patch)
tree4736df1e0d7c7d9143a1e6dbbfe8947d8079f934 /drivers/virtio/Kconfig
parentf65ca1dc6a8c81c6bd72297d4399ec5f4c1f3a01 (diff)
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