aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-06-25 00:19:12 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 07:11:01 -0400
commiteba0045ff87bab465d3c80c289f3bf709c1800f5 (patch)
treee015805494c1ddb427fa568619163913270963bd /arch/x86/xen/enlighten.c
parent67350a5c4514c280665cdb45439d32a008a264ba (diff)
x86/paravirt: add a pgd_alloc/free hooks
Add hooks which are called at pgd_alloc/free time. The pgd_alloc hook may return an error code, which if non-zero, causes the pgd allocation to be failed. The hooks may be used to allocate/free auxillary per-pgd information. also fix: > * Ingo Molnar <mingo@elte.hu> wrote: > > include/asm/pgalloc.h: In function ‘paravirt_pgd_free': > include/asm/pgalloc.h:14: error: parameter name omitted > arch/x86/kernel/entry_64.S: In file included from > arch/x86/kernel/traps_64.c:51:include/asm/pgalloc.h: In function ‘paravirt_pgd_free': > include/asm/pgalloc.h:14: error: parameter name omitted Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: xen-devel <xen-devel@lists.xensource.com> Cc: Stephen Tweedie <sct@redhat.com> Cc: Eduardo Habkost <ehabkost@redhat.com> Cc: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 76ad1efaf09e..d62f14e20708 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -45,6 +45,7 @@
45#include <asm/pgtable.h> 45#include <asm/pgtable.h>
46#include <asm/tlbflush.h> 46#include <asm/tlbflush.h>
47#include <asm/reboot.h> 47#include <asm/reboot.h>
48#include <asm/pgalloc.h>
48 49
49#include "xen-ops.h" 50#include "xen-ops.h"
50#include "mmu.h" 51#include "mmu.h"
@@ -1153,6 +1154,9 @@ static const struct pv_mmu_ops xen_mmu_ops __initdata = {
1153 .pte_update = paravirt_nop, 1154 .pte_update = paravirt_nop,
1154 .pte_update_defer = paravirt_nop, 1155 .pte_update_defer = paravirt_nop,
1155 1156
1157 .pgd_alloc = __paravirt_pgd_alloc,
1158 .pgd_free = paravirt_nop,
1159
1156 .alloc_pte = xen_alloc_pte_init, 1160 .alloc_pte = xen_alloc_pte_init,
1157 .release_pte = xen_release_pte_init, 1161 .release_pte = xen_release_pte_init,
1158 .alloc_pmd = xen_alloc_pte_init, 1162 .alloc_pmd = xen_alloc_pte_init,