summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorRusty Russell2013-04-22 06:40:37 +0200
committerRusty Russell2013-04-22 08:01:33 +0200
commit406a590ba105bfb7b67952f0a5f948e0d374e03e (patch)
tree97fbf193d865ff2fa1b1ab209589c1d456f89fa5 /arch/x86/include/asm
parentvirtio: console: replace EMFILE with EBUSY for already-open port (diff)
downloadkernel-qcow2-linux-406a590ba105bfb7b67952f0a5f948e0d374e03e.tar.gz
kernel-qcow2-linux-406a590ba105bfb7b67952f0a5f948e0d374e03e.tar.xz
kernel-qcow2-linux-406a590ba105bfb7b67952f0a5f948e0d374e03e.zip
lguest: prepare to make SWITCHER_ADDR a variable.
We currently use the whole top PGD entry for the switcher, but that's hitting the fixmap in some configurations (mainly, large NR_CPUS). Introduce a variable, currently set to the constant. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/lguest.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/lguest.h b/arch/x86/include/asm/lguest.h
index 0d97deba1e35..85ecdb80d121 100644
--- a/arch/x86/include/asm/lguest.h
+++ b/arch/x86/include/asm/lguest.h
@@ -23,6 +23,8 @@
#else
#define SWITCHER_ADDR 0xFFC00000
#endif
+/* Where we map the Switcher, in both Host and Guest. */
+extern unsigned long switcher_addr;
/* Found in switcher.S */
extern unsigned long default_idt_entries[];