]> err.no Git - linux-2.6/commitdiff
lguest: the Makefile and Kconfig
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 19 Jul 2007 08:49:27 +0000 (01:49 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:52 +0000 (10:04 -0700)
This is the Kconfig and Makefile to allow lguest to actually be
compiled.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/Kconfig
drivers/Makefile
drivers/lguest/Kconfig [new file with mode: 0644]
drivers/lguest/Makefile [new file with mode: 0644]

index ae01d86070bb902837dc5d345f12520bd89a863c..707650ab77a76cae4983a6d6f56494e84bc24972 100644 (file)
@@ -85,4 +85,6 @@ source "drivers/auxdisplay/Kconfig"
 source "drivers/kvm/Kconfig"
 
 source "drivers/uio/Kconfig"
+
+source "drivers/lguest/Kconfig"
 endmenu
index c34c8efff609b23a59649c8a3a73ad2db3ac5497..0ea8e3237c0d0cbf381621841ae6fde722bb58cd 100644 (file)
@@ -73,6 +73,7 @@ obj-$(CONFIG_ISDN)            += isdn/
 obj-$(CONFIG_EDAC)             += edac/
 obj-$(CONFIG_MCA)              += mca/
 obj-$(CONFIG_EISA)             += eisa/
+obj-$(CONFIG_LGUEST_GUEST)     += lguest/
 obj-$(CONFIG_CPU_FREQ)         += cpufreq/
 obj-$(CONFIG_MMC)              += mmc/
 obj-$(CONFIG_NEW_LEDS)         += leds/
diff --git a/drivers/lguest/Kconfig b/drivers/lguest/Kconfig
new file mode 100644 (file)
index 0000000..43d901f
--- /dev/null
@@ -0,0 +1,20 @@
+config LGUEST
+       tristate "Linux hypervisor example code"
+       depends on X86 && PARAVIRT && NET && EXPERIMENTAL && !X86_PAE
+       select LGUEST_GUEST
+       select HVC_DRIVER
+       ---help---
+         This is a very simple module which allows you to run
+         multiple instances of the same Linux kernel, using the
+         "lguest" command found in the Documentation/lguest directory.
+         Note that "lguest" is pronounced to rhyme with "fell quest",
+         not "rustyvisor".  See Documentation/lguest/lguest.txt.
+
+         If unsure, say N.  If curious, say M.  If masochistic, say Y.
+
+config LGUEST_GUEST
+       bool
+       help
+         The guest needs code built-in, even if the host has lguest
+         support as a module.  The drivers are tiny, so we build them
+         in too.
diff --git a/drivers/lguest/Makefile b/drivers/lguest/Makefile
new file mode 100644 (file)
index 0000000..55382c7
--- /dev/null
@@ -0,0 +1,7 @@
+# Guest requires the paravirt_ops replacement and the bus driver.
+obj-$(CONFIG_LGUEST_GUEST) += lguest.o lguest_asm.o lguest_bus.o
+
+# Host requires the other files, which can be a module.
+obj-$(CONFIG_LGUEST)   += lg.o
+lg-y := core.o hypercalls.o page_tables.o interrupts_and_traps.o \
+       segments.o io.o lguest_user.o switcher.o