Magellan Linux

Contents of /tags/kernel26-xen-2_6_25_r1-fedora9-patches/kernel26-xen/patches-2.6.25-r1/1147-2.6.25-xen-64-quick-ugly-hack-to-fix-pgd_clear-pagetabl.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 608 - (show annotations) (download)
Fri May 23 12:17:32 2008 UTC (16 years ago) by (unknown author)
File size: 940 byte(s)
This commit was manufactured by cvs2svn to create tag
'kernel26-xen-2_6_25_r1-fedora9-patches'.
1 From 0f5f6cec686753c7096663ea48add203a8e0106b Mon Sep 17 00:00:00 2001
2 From: Eduardo Habkost <ehabkost@redhat.com>
3 Date: Wed, 20 Feb 2008 19:04:43 -0300
4 Subject: [PATCH] Xen-64: quick, ugly hack to fix pgd_clear() pagetable unpinning (FIXME)
5
6 Should be fixed properly later.
7
8 Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
9 ---
10 include/asm-x86/paravirt.h | 4 ++++
11 1 files changed, 4 insertions(+), 0 deletions(-)
12
13 diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h
14 index 784ea98..3fddadc 100644
15 --- a/include/asm-x86/paravirt.h
16 +++ b/include/asm-x86/paravirt.h
17 @@ -1146,6 +1146,10 @@ static inline void set_pgd(pgd_t *pgdp, pgd_t pgd)
18 static inline void pgd_clear(pgd_t *pgdp)
19 {
20 set_pgd(pgdp, __pgd(0));
21 +#ifdef CONFIG_X86_64
22 + /*FIXME: ugly ugly ugly ugly ugly ugly hack */
23 + set_pgd((pgd_t*)(((unsigned long)pgdp)+PAGE_SIZE), __pgd(0));
24 +#endif
25 }
26
27 static inline void pud_clear(pud_t *pudp)
28 --
29 1.5.4.1
30