/[pkg-src]/trunk/kernel26-xen/patches-2.6.25-r1/1147-2.6.25-xen-64-quick-ugly-hack-to-fix-pgd_clear-pagetabl.patch |
Contents of /trunk/kernel26-xen/patches-2.6.25-r1/1147-2.6.25-xen-64-quick-ugly-hack-to-fix-pgd_clear-pagetabl.patch
Parent Directory | Revision Log
Revision 606 -
(show annotations)
(download)
Thu May 22 23:13:13 2008 UTC (16 years ago) by niro
File size: 940 byte(s)
Thu May 22 23:13:13 2008 UTC (16 years ago) by niro
File size: 940 byte(s)
-ver bump to 2.6.25-magellan-r1: - linux-2.6.25.4 - fbcondecor-0.9.4 - squashfs-3.3 - unionfs-2.3.3 - tuxonice-3.0-rc7 - linux-phc-0.3.0 - acpi-dstd-0.9a - reiser4 - xen-3.2.0 . ipw3945-1.2.2
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 |