From: Ian Jackson Subject: Re: openfile handle to qemu-resume file Date: Wed, 15 Oct 2014 17:16:11 +0100 Message-ID: <21566.40395.18224.864777@mariner.uk.xensource.com> References: <6bad7d60b21ee8b602bfe7a7b2d8dc28@192.168.200.10> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <6bad7d60b21ee8b602bfe7a7b2d8dc28@192.168.200.10> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: web1 Cc: ian.campbell@eu.citrix.com, "xen-devel lists.xen.org" List-Id: xen-devel@lists.xenproject.org web1 writes ("[Xen-devel] openfile handle to qemu-resume file"): ... > if i look in the source code, i found in libxl_dm.c in the function libx= l__build_device_model_args_new that this "resume-file" is opened, but i fou= nd no call to close this file . Later in libxl__spawn_local_dm (which calle= d libxl__build_device_model_args) i found a call to device_model_spawn_outc= ome, their in the state-file is deleted (if it exists). Thanks. Yes, I think you are right. > i don=B4t really understand while the state-file is open and not close be= fore delete. Can anyone that explain? It looks like a bug to me. I think the code in libxl here is quite wrong. I am preparing a patch to fix it. (Sadly this is not entirely trivial.) > for one restore of a vm it is possilbe that this fact is not really impor= tent, but if you use libvirt in combination with xen/libxl it cause to an i= ncrease of openfile handles , if you restore often vm=B4s for test=B4s Indeed. Thanks for the report and the analysis. Ian.