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

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] regression from -unstable c/s 21812:e382656e4dcc (noticed in 4.0.1)
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Mon, 13 Dec 2010 09:18:13 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 13 Dec 2010 01:19:18 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
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>