Skip to content

Commit 709e892

Browse files
rustyrussellLinus Torvalds
authored andcommitted
lguest: the Makefile and Kconfig
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>
1 parent 6db7016 commit 709e892

4 files changed

Lines changed: 30 additions & 0 deletions

File tree

‎drivers/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,6 @@ source "drivers/auxdisplay/Kconfig"
8585
source "drivers/kvm/Kconfig"
8686

8787
source "drivers/uio/Kconfig"
88+
89+
source "drivers/lguest/Kconfig"
8890
endmenu

‎drivers/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ obj-$(CONFIG_ISDN) += isdn/
7373
obj-$(CONFIG_EDAC) += edac/
7474
obj-$(CONFIG_MCA) += mca/
7575
obj-$(CONFIG_EISA) += eisa/
76+
obj-$(CONFIG_LGUEST_GUEST) += lguest/
7677
obj-$(CONFIG_CPU_FREQ) += cpufreq/
7778
obj-$(CONFIG_MMC) += mmc/
7879
obj-$(CONFIG_NEW_LEDS) += leds/

‎drivers/lguest/Kconfig‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
config LGUEST
2+
tristate "Linux hypervisor example code"
3+
depends on X86 && PARAVIRT && NET && EXPERIMENTAL && !X86_PAE
4+
select LGUEST_GUEST
5+
select HVC_DRIVER
6+
---help---
7+
This is a very simple module which allows you to run
8+
multiple instances of the same Linux kernel, using the
9+
"lguest" command found in the Documentation/lguest directory.
10+
Note that "lguest" is pronounced to rhyme with "fell quest",
11+
not "rustyvisor". See Documentation/lguest/lguest.txt.
12+
13+
If unsure, say N. If curious, say M. If masochistic, say Y.
14+
15+
config LGUEST_GUEST
16+
bool
17+
help
18+
The guest needs code built-in, even if the host has lguest
19+
support as a module. The drivers are tiny, so we build them
20+
in too.

‎drivers/lguest/Makefile‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Guest requires the paravirt_ops replacement and the bus driver.
2+
obj-$(CONFIG_LGUEST_GUEST) += lguest.o lguest_asm.o lguest_bus.o
3+
4+
# Host requires the other files, which can be a module.
5+
obj-$(CONFIG_LGUEST) += lg.o
6+
lg-y := core.o hypercalls.o page_tables.o interrupts_and_traps.o \
7+
segments.o io.o lguest_user.o switcher.o

0 commit comments

Comments
 (0)