Magellan Linux

Contents of /trunk/kernel26-xen/patches-2.6.25-r1/1132-2.6.25-xen-64-pin-user-PGD-on-activate_mm-and-dup_mmap.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 606 - (show annotations) (download)
Thu May 22 23:13:13 2008 UTC (16 years ago) by niro
File size: 1034 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 960214f45fc39c79908daaba745f9813aeba1336 Mon Sep 17 00:00:00 2001
2 From: Eduardo Habkost <ehabkost@redhat.com>
3 Date: Fri, 25 Jan 2008 12:05:30 -0200
4 Subject: [PATCH] Xen-64: pin user PGD on activate_mm() and dup_mmap()
5
6 Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
7 ---
8 arch/x86/xen/mmu.c | 6 ++++++
9 1 files changed, 6 insertions(+), 0 deletions(-)
10
11 diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
12 index 9920c90..998cfb9 100644
13 --- a/arch/x86/xen/mmu.c
14 +++ b/arch/x86/xen/mmu.c
15 @@ -578,6 +578,9 @@ void xen_activate_mm(struct mm_struct *prev, struct mm_struct *next)
16 {
17 spin_lock(&next->page_table_lock);
18 xen_pgd_pin(next->pgd);
19 +#ifdef CONFIG_X86_64
20 + xen_pgd_pin(__user_pgd(next->pgd));
21 +#endif
22 spin_unlock(&next->page_table_lock);
23 }
24
25 @@ -585,6 +588,9 @@ void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm)
26 {
27 spin_lock(&mm->page_table_lock);
28 xen_pgd_pin(mm->pgd);
29 +#ifdef CONFIG_X86_64
30 + xen_pgd_pin(__user_pgd(mm->pgd));
31 +#endif
32 spin_unlock(&mm->page_table_lock);
33 }
34
35 --
36 1.5.4.1
37