direct-io.hg

changeset 6449:edeee85c90b1

Fix GDT allocation for SMP guests.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Aug 26 11:00:14 2005 +0000 (2005-08-26)
parents 6bad5eb72ce0
children 5978be010bec
files linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c	Fri Aug 26 10:52:53 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c	Fri Aug 26 11:00:14 2005 +0000
     1.3 @@ -853,7 +853,7 @@ static int __init do_boot_cpu(int apicid
     1.4  	atomic_set(&init_deasserted, 0);
     1.5  
     1.6  #if 1
     1.7 -	cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL);
     1.8 +	cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL|__GFP_ZERO);
     1.9  	BUG_ON(cpu_gdt_descr[0].size > PAGE_SIZE);
    1.10  	cpu_gdt_descr[cpu].size = cpu_gdt_descr[0].size;
    1.11  	printk("GDT: copying %d bytes from %lx to %lx\n",
     2.1 --- a/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c	Fri Aug 26 10:52:53 2005 +0000
     2.2 +++ b/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c	Fri Aug 26 11:00:14 2005 +0000
     2.3 @@ -739,7 +739,7 @@ static int __cpuinit do_boot_cpu(int cpu
     2.4  	atomic_set(&init_deasserted, 0);
     2.5  
     2.6  #ifdef CONFIG_XEN
     2.7 -	cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL);
     2.8 +	cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL|__GFP_ZERO);
     2.9  	BUG_ON(cpu_gdt_descr[0].size > PAGE_SIZE);
    2.10  	cpu_gdt_descr[cpu].size = cpu_gdt_descr[0].size;
    2.11  	memcpy((void *)cpu_gdt_descr[cpu].address,