summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/xen/interface_32.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-09-30 15:37:26 +0400
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-11-13 02:00:06 +0300
commit7e77506a5918d82cafa2ffa783ab57c23f9e9817 (patch)
treedc922c1127c8859cda50f5cbed654c5681a89480 /arch/x86/include/asm/xen/interface_32.h
parent9ec23a7f6d2537faf14368e066e307c06812c4ca (diff)
downloadlinux-7e77506a5918d82cafa2ffa783ab57c23f9e9817.tar.xz
xen: implement XENMEM_machphys_mapping
This hypercall allows Xen to specify a non-default location for the machine to physical mapping. This capability is used when running a 32 bit domain 0 on a 64 bit hypervisor to shrink the hypervisor hole to exactly the size required. [ Impact: add Xen hypercall definitions ] Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'arch/x86/include/asm/xen/interface_32.h')
-rw-r--r--arch/x86/include/asm/xen/interface_32.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/xen/interface_32.h b/arch/x86/include/asm/xen/interface_32.h
index 42a7e004ae5c..8413688b2571 100644
--- a/arch/x86/include/asm/xen/interface_32.h
+++ b/arch/x86/include/asm/xen/interface_32.h
@@ -32,6 +32,11 @@
/* And the trap vector is... */
#define TRAP_INSTR "int $0x82"
+#define __MACH2PHYS_VIRT_START 0xF5800000
+#define __MACH2PHYS_VIRT_END 0xF6800000
+
+#define __MACH2PHYS_SHIFT 2
+
/*
* Virtual addresses beyond this are not modifiable by guest OSes. The
* machine->physical mapping table starts at this address, read-only.