aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/xen/mmu.h
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2008-04-02 15:36:36 +0100
committerIngo Molnar <mingo@elte.hu>2008-04-04 18:36:48 +0200
commitf64337062c09c2c318fbcbf44ed1d739e8bc72ab (patch)
treefa0b44044379c5781aba6b3115b038a05e7fa413 /arch/x86/xen/mmu.h
parent8f59610de2fb244b5bc1a3feafd328a8d4d511d6 (diff)
xen: refactor xen_{alloc,release}_{pt,pd}()
Signed-off-by: Mark McLoughlin <markmc@redhat.com> Cc: xen-devel@lists.xensource.com Cc: Mark McLoughlin <markmc@redhat.com> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen/mmu.h')
-rw-r--r--arch/x86/xen/mmu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/xen/mmu.h b/arch/x86/xen/mmu.h
index c9ff27f3ac3..b5e189b1519 100644
--- a/arch/x86/xen/mmu.h
+++ b/arch/x86/xen/mmu.h
@@ -3,6 +3,13 @@
#include <linux/linkage.h>
#include <asm/page.h>
+enum pt_level {
+ PT_PGD,
+ PT_PUD,
+ PT_PMD,
+ PT_PTE
+};
+
/*
* Page-directory addresses above 4GB do not fit into architectural %cr3.
* When accessing %cr3, or equivalent field in vcpu_guest_context, guests