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/
Home Products Support Community News


[Xen-ia64-devel] [PATCH] Add prototype for __get_free_pages

To: "Magenheimer, Dan \(HP Labs Fort Collins\)" <dan.magenheimer@xxxxxx>
Subject: [Xen-ia64-devel] [PATCH] Add prototype for __get_free_pages
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Fri, 2 Sep 2005 16:41:30 +0800
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 02 Sep 2005 08:39:26 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcWvmh2j4+gBhyj8S5GMRARNSLan0g==
Thread-topic: [PATCH] Add prototype for __get_free_pages
Due to upgrading to 2.6.13, missing prototypes for several new memory
allocate interfaces actually destroy the xenheap. The machine just MCA
once xenU is created and executed in metaphysical mode.

Missing prototype makes allocated address from __get_free_pages
truncated to 32bit:
        d->arch.mm->pgd = pgd_alloc(d->arch.mm);

In this case, 0xe0000000040f8000 is truncated to 0x40f8000 as the pgd
base address. Later when Xen tries to access this table for querying
guest physical -> machine mapping, page fault handler doesn't consider
it as legal hypervisor address and something goes weird. Finally MCA

Signed-off-by Kevin Tian <Kevin.tian@xxxxxxxxx>


Attachment: hg_0902_prototype
Description: hg_0902_prototype

Xen-ia64-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH] Add prototype for __get_free_pages, Tian, Kevin <=