Magellan Linux

Contents of /trunk/kernel26-xen/patches-2.6.25-r1/1111-2.6.25-xen-64-implement-xen_load_gs_index.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: 1174 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 ba2be3356cbd5022647cd95d46ec60a1f7785d19 Mon Sep 17 00:00:00 2001
2 From: Eduardo Habkost <ehabkost@redhat.com>
3 Date: Mon, 14 Jan 2008 19:56:21 -0200
4 Subject: [PATCH] xen-64: implement xen_load_gs_index()
5
6 Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
7 ---
8 arch/x86/xen/enlighten.c | 10 ++++++++++
9 1 files changed, 10 insertions(+), 0 deletions(-)
10
11 diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
12 index 627d8b6..b383376 100644
13 --- a/arch/x86/xen/enlighten.c
14 +++ b/arch/x86/xen/enlighten.c
15 @@ -424,6 +424,13 @@ static void xen_load_tls(struct thread_struct *t, unsigned int cpu)
16 #endif
17 }
18
19 +#ifdef CONFIG_X86_64
20 +static void xen_load_gs_index(unsigned int idx)
21 +{
22 + HYPERVISOR_set_segment_base(SEGBASE_GS_USER_SEL, idx);
23 +}
24 +#endif
25 +
26 static void xen_write_ldt_entry(struct desc_struct *dt, int entrynum,
27 const void *ptr)
28 {
29 @@ -1141,6 +1148,9 @@ static const struct pv_cpu_ops xen_cpu_ops __initdata = {
30 .load_gdt = xen_load_gdt,
31 .load_idt = xen_load_idt,
32 .load_tls = xen_load_tls,
33 +#ifdef CONFIG_X86_64
34 + .load_gs_index = xen_load_gs_index,
35 +#endif
36
37 .store_gdt = native_store_gdt,
38 .store_idt = native_store_idt,
39 --
40 1.5.4.1
41