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] Re: regression from -unstable c/s 21812:e382656e4dcc (notice

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: [Xen-devel] Re: regression from -unstable c/s 21812:e382656e4dcc (noticed in 4.0.1)
From: Keir Fraser <keir@xxxxxxx>
Date: Mon, 13 Dec 2010 09:29:50 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 13 Dec 2010 01:30:46 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:user-agent:date :subject:from:to:cc:message-id:thread-topic:thread-index:in-reply-to :mime-version:content-type:content-transfer-encoding; bh=XfDb3rx+r/Dsa16a/PzywBTR4cOp3YW3wRWRgm3+eNg=; b=U+jUiIw6ShYbbyghWj/837RoFr9KD7e5gY+7HCJxp8Mma0Z6WRDeA+vMtCW1caHmWK nr0Gwtn6a5C0fYMVoCeYCsQRDSEeWCyePDcLjOJR2p7prl0Uvwi/NNh22uQaaesCP7dc PL5cd0q4NvLDOZM9YxI5nxdCiThX5XDxSoQuE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=xrNl+BLIW8NJUIUj4ZbXGApjeNaAiuuZFA7KHcX2tFrT9ijx71VQ9YSfqDNDpSbVSo xKod/14ZHjN4UZmzTER1MUSerfA0Lt96VFdU1JMOyhtyAg58T7rS6t/vPdByLEen2ZEg vuBkNHXz7MVoxaEFORgBrdPtKybxD2r7wK/ag=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4D05F2E502000078000277F7@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/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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acuapq3gSZIrlxVhQZyBczc2M8HRgwAAZxPx
Thread-topic: regression from -unstable c/s 21812:e382656e4dcc (noticed in 4.0.1)
User-agent: Microsoft-Entourage/12.27.0.100910
Yeah, this is in my todo list. It's kind of hard to know how much memory
iommu mappings will take before the (scattered) dom0 memory is actually
allocated. I'll probably just reserve enough memory to map all of host
memory with 4kB mappings if iommu_enabled. Good enough I think, many people
run with dom0_mem= anyway, and if not you can run dom0 with mem= to expand
the p2m map and then balloon up some more in the init scripts if there is
still available memory at that point. All quite plausible for a packaged up
distro to do.

 -- Keir

On 13/12/2010 09:18, "Jan Beulich" <JBeulich@xxxxxxxxxx> wrote:

> Keir,
> 
> without the use of dom0_mem= reserving sufficiently much memory,
> this change causes a regression as the calculation of the Dom0
> allocation doesn't account for the memory consumed by
> iommu_dom0_init(). With enough memory in the system, this may
> run Xen out of memory altogether, in particular preventing Dom0
> from setting up its swiotlb (and pointing out lack of error handling,
> as it's very unlikely for hd->platform_ops->dom0_init() to have
> succeeded when afterwards there's not a single page left available).
> 
> To me it's not immediately clear what the best fix for this problem
> is: Either there needs to be another hook into iommu code to
> pre-calculate the memory needs, or the !strict case needs to be
> handled earlier again (under [questionable] the assumption that
> someone forcing strict mode will know to also pass a suitable
> dom0_mem=).
> 
> Thanks, Jan
> 



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

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