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] Why the machine address is out of the end of real physical m

To: Xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Why the machine address is out of the end of real physical memory?
From: "ken lost" <kenlost@xxxxxxxxx>
Date: Thu, 24 Apr 2008 09:20:57 +0800
Delivery-date: Wed, 23 Apr 2008 18:21:29 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=73RygKiajkmXCRwt1BpVWDHto7BzQNOUkoq8TbZgeZw=; b=ewBmfII/lNu7hptlFVKuL9Np+9AdYbt0QaCDQqVYzqUQ2ANZ11LXXaOn/zO/4Wyx5QbMbe66kfTFr2upcb1BrwsMCUjIG2xMGVt9a2cO3UgUQVVkfw2t8d00+mwYyOqVpG0EL5/WLS3x7+tUkLkYqS2wTO5YrhG8v+R6dIJ/YP4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=TIHBAOKDTX8RotRDzo4NxbIzBHq7OfbwVMcBBsScAtv9DvklTv2SALZ0nR/GQJt0b7uDctKydmehSkAd/zWqOGZeQwMssNJ5pis3b9Ej0Y6n1HQFnDU6j8mWMnbVvS9ifQ8F0PwI0u03PkC5mPV2RuSi8Ho81l8eo67/HXUyoM8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
Hello evrybody,

I have a machine with 8G RAM, which runs on Redhat Enterprise linux
5.1(kernel 2.6.18-53.el5xen, i386 platform PAE, xen 3.0.3 ) .  My
driver need run on Domain0.
The code has this code for get a momory and its machine address for BIOS.

           dmamem_buff = (void*)__get_free_pages( GFP_KERNEL|GFP_DMA,
DMA_MEMORY_ORDER);
           maddr_t ma = virt_to_machine(dmamem_buff) ;
           printk("machine address is %lldM\n", ma/1024/1024 );
           printk("machine address is 0x%llx\n", ma );
...

But the result :
           machine address is 8487M
           machine address is 0x212790000

Why the machine address is out of the end of real physical memory?

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