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

Re: [Xen-devel] Can I specify a physical memory region for a domU

To: Eric Camachat <eric.camachat@xxxxxxxxx>
Subject: Re: [Xen-devel] Can I specify a physical memory region for a domU
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Thu, 8 Sep 2011 08:59:21 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 08 Sep 2011 06:02:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CACeEFf6dh0AZ2Py2a3YWtGkQoHmVWMehFgz52tUBNJ80d+n7HQ@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CACeEFf6dh0AZ2Py2a3YWtGkQoHmVWMehFgz52tUBNJ80d+n7HQ@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
On Wed, Sep 07, 2011 at 05:47:46PM -0700, Eric Camachat wrote:
> Hi,
> 
> I am porting our drivers to XEN's PV domU (with PV PCI passthrouth), I

Use the DMA API that Linux provides (I presume that is what you meant
by PV DomU), and use the dma_alloc_coherent to set your regions.

Also pass in 'iommu=soft' on your Linux command line to enable the
Xen SWIOTLB DMA system.

> have to allocate a memory block and tell the hardware to access it.
> But the hardware can address 32-bit only, so I want dedicate a region
> of memory that below 2GB for the domU only.

Uh, don't you mean 4GB? - 32bit is up to 4GB.
> How do that in XEN?
> 
> Thanks,
> /Eric
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

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