aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/paravirt.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2006-12-06 20:14:08 -0500
committerAndi Kleen <andi@basil.nowhere.org>2006-12-06 20:14:08 -0500
commitc9ccf30d77f04064fe5436027ab9d2230c7cdd94 (patch)
tree95c028ae6f1e50275ff7a40b987300bb647e8ead /arch/i386/kernel/paravirt.c
parentd7cd56111f30259e1b532a12e06f59f8e0a20355 (diff)
[PATCH] paravirt: Add startup infrastructure for paravirtualization
1) Each hypervisor writes a probe function to detect whether we are running under that hypervisor. paravirt_probe() registers this function. 2) If vmlinux is booted with ring != 0, we call all the probe functions (with registers except %esp intact) in link order: the winner will not return. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Andi Kleen <ak@suse.de> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Zachary Amsden <zach@vmware.com> Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'arch/i386/kernel/paravirt.c')
-rw-r--r--arch/i386/kernel/paravirt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/i386/kernel/paravirt.c b/arch/i386/kernel/paravirt.c
index d46460426446..5a9bd3250a1a 100644
--- a/arch/i386/kernel/paravirt.c
+++ b/arch/i386/kernel/paravirt.c
@@ -19,6 +19,7 @@
19#include <linux/module.h> 19#include <linux/module.h>
20#include <linux/efi.h> 20#include <linux/efi.h>
21#include <linux/bcd.h> 21#include <linux/bcd.h>
22#include <linux/start_kernel.h>
22 23
23#include <asm/bug.h> 24#include <asm/bug.h>
24#include <asm/paravirt.h> 25#include <asm/paravirt.h>
@@ -387,6 +388,9 @@ static int __init print_banner(void)
387} 388}
388core_initcall(print_banner); 389core_initcall(print_banner);
389 390
391/* We simply declare start_kernel to be the paravirt probe of last resort. */
392paravirt_probe(start_kernel);
393
390struct paravirt_ops paravirt_ops = { 394struct paravirt_ops paravirt_ops = {
391 .name = "bare hardware", 395 .name = "bare hardware",
392 .paravirt_enabled = 0, 396 .paravirt_enabled = 0,