/[pkg-src]/trunk/kernel26-xen/patches-2.6.25-r1/1135-2.6.25-xen-64-Unpin-user-pagetable-on-xen_pgd_unpin.patch |
Contents of /trunk/kernel26-xen/patches-2.6.25-r1/1135-2.6.25-xen-64-Unpin-user-pagetable-on-xen_pgd_unpin.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: 912 byte(s)
Thu May 22 23:13:13 2008 UTC (16 years ago) by niro
File size: 912 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 9db9c8da726e25f93b9c064e5cda381ba9f712cd Mon Sep 17 00:00:00 2001 |
2 | From: Eduardo Habkost <ehabkost@redhat.com> |
3 | Date: Fri, 8 Feb 2008 13:41:33 -0200 |
4 | Subject: [PATCH] Xen-64: Unpin user pagetable on xen_pgd_unpin() |
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 053ce3e..3718523 100644 |
13 | --- a/arch/x86/xen/mmu.c |
14 | +++ b/arch/x86/xen/mmu.c |
15 | @@ -590,8 +590,14 @@ void xen_pgd_unpin(pgd_t *pgd) |
16 | { |
17 | xen_mc_batch(); |
18 | |
19 | +#ifdef CONFIG_X86_64 |
20 | + xen_do_pin(MMUEXT_UNPIN_TABLE, PFN_DOWN(__pa(__user_pgd(pgd)))); |
21 | +#endif |
22 | xen_do_pin(MMUEXT_UNPIN_TABLE, PFN_DOWN(__pa(pgd))); |
23 | |
24 | +#ifdef CONFIG_X86_64 |
25 | + pgd_walk(PARENT_FIRST, __user_pgd(pgd), unpin_page, 0, TASK_SIZE); |
26 | +#endif |
27 | pgd_walk(PARENT_FIRST, pgd, unpin_page, 0, TASK_SIZE); |
28 | |
29 | xen_mc_issue(0); |
30 | -- |
31 | 1.5.4.1 |
32 |