From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: QEMU bumping memory bug analysis Date: Tue, 9 Jun 2015 11:17:03 +0100 Message-ID: <20150609101703.GM29102@zion.uk.xensource.com> References: <1433530180.3342.17.camel@citrix.com> <1433765498.7108.480.camel@citrix.com> <5575A4C5.5070702@eu.citrix.com> <5575AE47.3020208@one.verizon.com> <5575B6D0.8010407@eu.citrix.com> <5575BD94.2010408@one.verizon.com> <5576B92C.9090300@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <5576B92C.9090300@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Wei Liu , Ian Campbell , Stefano Stabellini , Andrew Cooper , Ian Jackson , Don Slutz , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, Jun 09, 2015 at 11:00:12AM +0100, George Dunlap wrote: > >> I think that qemu needs to tell libxl how much memory it is using for > >> all of its needs -- including option ROMs. (See my example below.) For > >> older qemus we can just make some assumptions like we always have. > >> > > > > I am happy with this. Note: I think libxl could determine this number > > now without QEMU changes. However it does depend on no other thread > > changing a "staring" domain's memory while libxl is calculating this. > > > >> I do think it would make sense to have the hvmloader amount listed > >> somewhere explicitly. I'm not sure how often hvmloader may need to > >> change the amount it uses for itself. > >> > > > > hvmloader does yet a different method. If > > xc_domain_populate_physmap_exact() fails, it reduces guest RAM (if my > > memory is correct). > > This makes me wonder if we could make qemu do the same thing. > I don't think so, because QEMU can't adjust hvm_info. > -George