mbox series

[kvmtool,0/2] Automatically clean up ghost socket files

Message ID 20190503170821.260705-1-andre.przywara@arm.com (mailing list archive)
Headers show
Series Automatically clean up ghost socket files | expand

Message

Andre Przywara May 3, 2019, 5:08 p.m. UTC
kvmtool is creating UNIX socket inodes to communicate between a running
instance and a debug command issued by another lkvm process.
When kvmtool (or the kernel) crashes, those files are not cleaned up and
cause all kind of annoyances.
Those two patches delete leftover socket files on calling "lkvm list",
also remove an existing one (then reusing the same name) when creating
a guest.
This avoids random breakages when running kvmtool, and helps to run it
from scripts.

Cheers,
Andre

Andre Przywara (2):
  list: Clean up ghost socket files
  run: Check for ghost socket file upon VM creation

 kvm-ipc.c | 44 ++++++++++++++++++++++++++++++++++++--------
 1 file changed, 36 insertions(+), 8 deletions(-)