diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-10-21 21:01:54 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2007-10-23 01:49:50 -0400 |
commit | 34b8867a034364ca33d0adb3a1c5b9982903c719 (patch) | |
tree | 7b6385b3985e7bdcca91103d01dea9f707e8b567 | |
parent | c37ae93d597fc63bae979db76b527dcc7740dc9d (diff) |
Move lguest guest support to arch/x86.
Lguest has two sides: host support (to launch guests) and guest
support (replacement boot path and paravirt_ops). This moves the
guest side to arch/x86/lguest where it's closer to related code.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andi Kleen <ak@suse.de>
-rw-r--r-- | arch/i386/Kconfig | 10 | ||||
-rw-r--r-- | arch/i386/Makefile | 3 | ||||
-rw-r--r-- | arch/x86/lguest/Kconfig | 8 | ||||
-rw-r--r-- | arch/x86/lguest/Makefile | 1 | ||||
-rw-r--r-- | arch/x86/lguest/boot.c (renamed from drivers/lguest/lguest.c) | 0 | ||||
-rw-r--r-- | arch/x86/lguest/i386_head.S (renamed from drivers/lguest/lguest_asm.S) | 2 | ||||
-rw-r--r-- | drivers/lguest/Makefile | 4 |
7 files changed, 17 insertions, 11 deletions
diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig index 3523e82c8412..5bed8be34ba5 100644 --- a/arch/i386/Kconfig +++ b/arch/i386/Kconfig | |||
@@ -257,14 +257,8 @@ config VMI | |||
257 | at the moment), by linking the kernel to a GPL-ed ROM module | 257 | at the moment), by linking the kernel to a GPL-ed ROM module |
258 | provided by the hypervisor. | 258 | provided by the hypervisor. |
259 | 259 | ||
260 | config LGUEST_GUEST | 260 | source "arch/x86/lguest/Kconfig" |
261 | bool "Lguest guest support" | 261 | |
262 | select PARAVIRT | ||
263 | depends on !X86_PAE | ||
264 | help | ||
265 | Lguest is a tiny in-kernel hypervisor. Selecting this will | ||
266 | allow your kernel to boot under lguest. This option will increase | ||
267 | your kernel size by about 6k. If in doubt, say N. | ||
268 | endif | 262 | endif |
269 | 263 | ||
270 | config ACPI_SRAT | 264 | config ACPI_SRAT |
diff --git a/arch/i386/Makefile b/arch/i386/Makefile index b88e47ca3032..b81cb64d48e5 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile | |||
@@ -99,6 +99,9 @@ core-$(CONFIG_X86_ES7000) := arch/x86/mach-es7000/ | |||
99 | # Xen paravirtualization support | 99 | # Xen paravirtualization support |
100 | core-$(CONFIG_XEN) += arch/x86/xen/ | 100 | core-$(CONFIG_XEN) += arch/x86/xen/ |
101 | 101 | ||
102 | # lguest paravirtualization support | ||
103 | core-$(CONFIG_LGUEST_GUEST) += arch/x86/lguest/ | ||
104 | |||
102 | # default subarch .h files | 105 | # default subarch .h files |
103 | mflags-y += -Iinclude/asm-x86/mach-default | 106 | mflags-y += -Iinclude/asm-x86/mach-default |
104 | 107 | ||
diff --git a/arch/x86/lguest/Kconfig b/arch/x86/lguest/Kconfig new file mode 100644 index 000000000000..0fabf87db998 --- /dev/null +++ b/arch/x86/lguest/Kconfig | |||
@@ -0,0 +1,8 @@ | |||
1 | config LGUEST_GUEST | ||
2 | bool "Lguest guest support" | ||
3 | select PARAVIRT | ||
4 | depends on !X86_PAE | ||
5 | help | ||
6 | Lguest is a tiny in-kernel hypervisor. Selecting this will | ||
7 | allow your kernel to boot under lguest. This option will increase | ||
8 | your kernel size by about 6k. If in doubt, say N. | ||
diff --git a/arch/x86/lguest/Makefile b/arch/x86/lguest/Makefile new file mode 100644 index 000000000000..27f0c9ed7f60 --- /dev/null +++ b/arch/x86/lguest/Makefile | |||
@@ -0,0 +1 @@ | |||
obj-y := i386_head.o boot.o | |||
diff --git a/drivers/lguest/lguest.c b/arch/x86/lguest/boot.c index 8e9e485a5cfa..8e9e485a5cfa 100644 --- a/drivers/lguest/lguest.c +++ b/arch/x86/lguest/boot.c | |||
diff --git a/drivers/lguest/lguest_asm.S b/arch/x86/lguest/i386_head.S index 1ddcd5cd20f6..6d7a74f07c41 100644 --- a/drivers/lguest/lguest_asm.S +++ b/arch/x86/lguest/i386_head.S | |||
@@ -16,7 +16,7 @@ | |||
16 | .section .init.text, "ax", @progbits | 16 | .section .init.text, "ax", @progbits |
17 | .ascii "GenuineLguest" | 17 | .ascii "GenuineLguest" |
18 | /* Set up initial stack. */ | 18 | /* Set up initial stack. */ |
19 | movl $(init_thread_union+THREAD_SIZE),%esp | 19 | movl $(init_thread_union+THREAD_SIZE),%esp |
20 | movl %esi, %eax | 20 | movl %esi, %eax |
21 | addl $__PAGE_OFFSET, %eax | 21 | addl $__PAGE_OFFSET, %eax |
22 | jmp lguest_init | 22 | jmp lguest_init |
diff --git a/drivers/lguest/Makefile b/drivers/lguest/Makefile index e5047471c334..2db98c233e54 100644 --- a/drivers/lguest/Makefile +++ b/drivers/lguest/Makefile | |||
@@ -1,5 +1,5 @@ | |||
1 | # Guest requires the paravirt_ops replacement and the bus driver. | 1 | # Guest requires the bus driver. |
2 | obj-$(CONFIG_LGUEST_GUEST) += lguest.o lguest_asm.o lguest_bus.o | 2 | obj-$(CONFIG_LGUEST_GUEST) += lguest_bus.o |
3 | 3 | ||
4 | # Host requires the other files, which can be a module. | 4 | # Host requires the other files, which can be a module. |
5 | obj-$(CONFIG_LGUEST) += lg.o | 5 | obj-$(CONFIG_LGUEST) += lg.o |