From: Fabio Fantoni Subject: Re: [BUG] Qemu crash on xl create with memory allocation error (probably xl not consider all videoram for initial memory check) Date: Fri, 10 Oct 2014 16:46:55 +0200 Message-ID: <5437F15F.6030809@m2r.biz> References: <5437DCBE.3000201@m2r.biz> <20141010141539.GB10526@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141010141539.GB10526@zion.uk.xensource.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: Wei Liu Cc: Anthony PERARD , xen-devel , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Il 10/10/2014 16:15, Wei Liu ha scritto: > On Fri, Oct 10, 2014 at 03:18:54PM +0200, Fabio Fantoni wrote: >> On dom0 with xen from git 4.4-stable I found unexpected case about memory >> check on xl create. >> If I try to start domU with 2 gb of ram but only 1840384k free (from xentop) >> xl give me the correct error: >>> xl create /etc/xen/W7-04.cfg >>> Parsing config from /etc/xen/W7-04.cfg >>> libxl: notice: libxl_numa.c:494:libxl__get_numa_candidate: NUMA placement >>> failed, performance might be affected >>> xc: error: Could not allocate memory for HVM guest as we cannot claim >>> memory! (12 = Cannot allocate memory): Internal error >>> libxl: error: libxl_dom.c:651:libxl__build_hvm: hvm building failed >>> libxl: error: libxl_create.c:1067:domcreate_rebuild_done: cannot >>> (re-)build domain: -3 >>> libxl: error: libxl_dm.c:1486:kill_device_model: unable to find device >>> model pid in /local/domain/30/image/device-model-pid >>> libxl: error: libxl.c:1421:libxl__destroy_domid: >>> libxl__destroy_device_model failed for 30 > Can't say much about QEMU, but isn't this failure expected? You had <2G > free RAM but the guest asked for 2G. > > Wei. Yes the first case you quoted is ok (I wrote also it for the example), is the second one the unexpected case when xl memory check not consider videoram, continue to read my previous message...