[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Clean page for GDT


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
  • Date: Fri, 26 Aug 2005 00:10:44 -0700
  • Delivery-date: Fri, 26 Aug 2005 07:08:51 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcWqDUY2c/t+8AMbQ0qKirU8IZmQhA==
  • Thread-topic: [PATCH] Clean page for GDT

I observed error messages like the below, and processors were not
brought up:
 
Booting processor 1/1 rip ffffffff80100014 rsp ffff880000a55f58
(XEN) DOM0: (file=mm.c, line=1497) Error while validating pfn 2e23 for
type 00000000a0000000. caf=80000003 taf=00000000a0000001
boot error: -22

The patch attaced fixes this problem, and the processors are brought up
on x86_64 SMP dom0. Probably we should need the equivalent one for
x86_32.

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

Jun
---
Intel Open Source Technology Center 

---
diff -r 9fb0bad776dd -r 208e9c16e5f5
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     Thu Aug
25 18:49:48 2005
+++ b/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c     Fri Aug
26 06:26:29 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,

Attachment: clean_gdt.patch
Description: clean_gdt.patch

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.