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] Assigning contiguous memory to a driver domain

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] Assigning contiguous memory to a driver domain
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Mon, 20 Sep 2010 13:27:24 -0700
Cc: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Joanna Rutkowska <joanna@xxxxxxxxxxxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>, Rafal Wojtczuk <rafal@xxxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 20 Sep 2010 13:27:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100920194836.GA25803@xxxxxxxxxxxx>
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: <4C90B31902000078000163E8@xxxxxxxxxxxxxxxxxx> <4C90A32A.7010803@xxxxxxxxxxxxxxxxxxxxxx> <4C90C3200200007800016442@xxxxxxxxxxxxxxxxxx> <4C90A8E4.9090004@xxxxxxxxxxxxxxxxxxxxxx> <4C90CF39020000780001647E@xxxxxxxxxxxxxxxxxx> <87pqwfgqvt.fsf@xxxxxxxxxxxxxxxxxxxx> <20100915120626.GA2024@email> <4C90EB1102000078000164C6@xxxxxxxxxxxxxxxxxx> <20100915144413.GB2098@email> <4C91027802000078000165E8@xxxxxxxxxxxxxxxxxx> <20100920194836.GA25803@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Lightning/1.0b3pre Thunderbird/3.1.3
 On 09/20/2010 12:48 PM, Konrad Rzeszutek Wilk wrote:
> Let me expand this. During bootup Xen-SWIOTLB  (which for DomU you have
> to enable via the 'iommu=soft'), allocated 32 2MB chunks of contingous
> memory under the 4GB limit. Those chunks stay in DomU and are used
> during the the runtime of the DomU. They don't go back to Xen unless the
> domain has been terminated. Any of the DMA operations that any driver
> does go through the SWIOTLB bufer if the physical (mfn) for the DMA is
> outside the driver capabilities (say, your ping buffer is allocated above
> the 4GB, and your r8169 can only do 32-bit, then SWIOTLB would be utilized
> to "bounce" the memory).

BTW, are there any hooks to make sure these pages are still contiguous
after migration/restore?

    J

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

<Prev in Thread] Current Thread [Next in Thread>