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-devel

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

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Clean page for GDT
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Clean page for GDT, Nakajima, Jun <=