WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Fix GDT allocation for SMP guests.

# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID edeee85c90b1fe1431437338cb1645acb176b0bd
# Parent  6bad5eb72ce03ec54e2f44f06e0b46ba2db1715b
Fix GDT allocation for SMP guests.

Signed-off-by: Jun Nakajima <jun.nakajima@xxxxxxxxx>

diff -r 6bad5eb72ce0 -r edeee85c90b1 
linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c
--- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c       Fri Aug 26 
10:52:53 2005
+++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c       Fri Aug 26 
11:00:14 2005
@@ -853,7 +853,7 @@
        atomic_set(&init_deasserted, 0);
 
 #if 1
-       cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL);
+       cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL|__GFP_ZERO);
        BUG_ON(cpu_gdt_descr[0].size > PAGE_SIZE);
        cpu_gdt_descr[cpu].size = cpu_gdt_descr[0].size;
        printk("GDT: copying %d bytes from %lx to %lx\n",
diff -r 6bad5eb72ce0 -r edeee85c90b1 
linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c
--- a/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c     Fri Aug 26 
10:52:53 2005
+++ b/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c     Fri Aug 26 
11:00:14 2005
@@ -739,7 +739,7 @@
        atomic_set(&init_deasserted, 0);
 
 #ifdef CONFIG_XEN
-       cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL);
+       cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL|__GFP_ZERO);
        BUG_ON(cpu_gdt_descr[0].size > PAGE_SIZE);
        cpu_gdt_descr[cpu].size = cpu_gdt_descr[0].size;
        memcpy((void *)cpu_gdt_descr[cpu].address,

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix GDT allocation for SMP guests., Xen patchbot -unstable <=