Magellan Linux

Contents of /tags/kernel26-xen-2_6_25_r1-fedora9-patches/kernel26-xen/patches-2.6.25-r1/1024-2.6.25-xen-x86_64-Hack-to-set-vsyscall-pages-on-user-space.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: 883 byte(s)
This commit was manufactured by cvs2svn to create tag
'kernel26-xen-2_6_25_r1-fedora9-patches'.
1 From b4f9544cfcb40cff3dab584dcfa75c6b5abf57e1 Mon Sep 17 00:00:00 2001
2 From: Eduardo Habkost <ehabkost@redhat.com>
3 Date: Fri, 8 Feb 2008 12:48:51 -0200
4 Subject: [PATCH] xen x86_64: Hack to set vsyscall pages on user-space pagetables also (FIXME)
5
6 This should be done using pvops.
7
8 Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
9 ---
10 arch/x86/mm/init_64.c | 6 ++++++
11 1 files changed, 6 insertions(+), 0 deletions(-)
12
13 diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
14 index 0a0307a..b5f1f6e 100644
15 --- a/arch/x86/mm/init_64.c
16 +++ b/arch/x86/mm/init_64.c
17 @@ -218,6 +218,12 @@ __native_set_fixmap(enum fixed_addresses idx, pte_t pte)
18 return;
19 }
20 set_pte_vaddr(address, pte);
21 +
22 +#ifdef CONFIG_XEN
23 + /*FIXME: move this to xen_set_pte() */
24 + if (idx == VSYSCALL_FIRST_PAGE)
25 + set_pte_vaddr_pud(level3_user_pgt, address, pte);
26 +#endif
27 }
28
29 void __init
30 --
31 1.5.4.1
32