Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 153559 Details for
Bug 238015
vgetcpu vsyscall not working
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
x86_64 vgetcpu vsyscall fix
rawhide-fix-x86_64-vgetcpu.patch (text/plain), 1.67 KB, created by
Chris Wright
on 2007-04-26 22:34:14 UTC
(
hide
)
Description:
x86_64 vgetcpu vsyscall fix
Filename:
MIME Type:
Creator:
Chris Wright
Created:
2007-04-26 22:34:14 UTC
Size:
1.67 KB
patch
obsolete
>--- linux-2.6.20.noarch/arch/x86_64/kernel/vsyscall.c~orig 2007-04-26 02:05:31.000000000 -0700 >+++ linux-2.6.20.noarch/arch/x86_64/kernel/vsyscall.c 2007-04-26 15:11:02.000000000 -0700 >@@ -40,6 +40,9 @@ > #include <asm/segment.h> > #include <asm/desc.h> > #include <asm/topology.h> >+#ifdef CONFIG_XEN >+#include <asm/hypercall.h> >+#endif > > #define __vsyscall(nr) __attribute__ ((unused,__section__(".vsyscall_" #nr))) > #define __syscall_clobber "r11","rcx","memory" >@@ -246,12 +249,11 @@ > > #endif > >-#ifndef CONFIG_XEN > /* Assume __initcall executes before all user space. Hopefully kmod > doesn't violate that. We'll find out if it does. */ > static void __cpuinit vsyscall_set_cpu(int cpu) > { >- unsigned long *d; >+ unsigned long *d, n; > unsigned long node = 0; > #ifdef CONFIG_NUMA > node = cpu_to_node[cpu]; >@@ -263,10 +265,15 @@ > in user space in vgetcpu. > 12 bits for the CPU and 8 bits for the node. */ > d = (unsigned long *)(cpu_gdt(cpu) + GDT_ENTRY_PER_CPU); >- *d = 0x0f40000000000ULL; >- *d |= cpu; >- *d |= (node & 0xf) << 12; >- *d |= (node >> 4) << 48; >+ n = 0x0f40000000000ULL; >+ n |= cpu; >+ n |= (node & 0xf) << 12; >+ n |= (node >> 4) << 48; >+#ifndef CONFIG_XEN >+ *d = n; >+#else >+ HYPERVISOR_update_descriptor(virt_to_machine(d), n); >+#endif > } > > static void __cpuinit cpu_vsyscall_init(void *arg) >@@ -283,7 +290,6 @@ > smp_call_function_single(cpu, cpu_vsyscall_init, NULL, 0, 1); > return NOTIFY_DONE; > } >-#endif > > static void __init map_vsyscall(void) > { >@@ -320,10 +326,8 @@ > #ifdef CONFIG_SYSCTL > register_sysctl_table(kernel_root_table2, 0); > #endif >-#ifndef CONFIG_XEN > on_each_cpu(cpu_vsyscall_init, NULL, 0, 1); > hotcpu_notifier(cpu_vsyscall_notifier, 0); >-#endif > return 0; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 238015
:
153558
| 153559