All of lore.kernel.org
 help / color / mirror / Atom feed
* openfile handle to qemu-resume file
@ 2014-10-09 16:05 web1
  2014-10-15 16:16 ` Ian Jackson
  0 siblings, 1 reply; 9+ messages in thread
From: web1 @ 2014-10-09 16:05 UTC (permalink / raw)
  To: xen-devel lists.xen.org

Hello everybody,

i do some vm-restore tests with xen-4.4.1 , an i observe , that after i restore a vm via "xl restore", that their is an openfile handle to a file called "/var/lib/xen/qemu-resume.<vm-id>" that is marked as "deleted", the associated qemu-process show the same.

 if i look in the source code, i found in libxl_dm.c in the function libxl__build_device_model_args_new that this "resume-file" is opened, but i found no call to close this file . Later in libxl__spawn_local_dm (which called libxl__build_device_model_args) i found a call to device_model_spawn_outcome, their in the state-file is deleted (if it exists).

i don´t really understand while the state-file is open and not close before delete. Can anyone that explain?

xen-4.4.1 was complied from sources without any special options

for one restore of a vm it is possilbe that this fact is not really importent, but if you use libvirt in combination with xen/libxl it cause to an increase of openfile handles , if you restore often vm´s for test´s

thanks and all the best
max


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-10-20 13:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-09 16:05 openfile handle to qemu-resume file web1
2014-10-15 16:16 ` Ian Jackson
2014-10-16 17:44   ` [PATCH 1/2] libxl: Fix a couple of log messages to print correct errnos Ian Jackson
2014-10-16 17:44     ` [PATCH 2/2] libxl: Avoid fd leak of qemu state fd during migration Ian Jackson
2014-10-16 17:45       ` Ian Jackson
2014-10-17 12:38       ` Wei Liu
2014-10-20 13:21         ` Ian Campbell
2014-10-17 12:24     ` [PATCH 1/2] libxl: Fix a couple of log messages to print correct errnos Don Slutz
2014-10-17 12:26     ` Wei Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.