qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Clean Block Driver Shutdown
@ 2017-10-17 10:33 Peter Lieven
  2017-10-17 11:46 ` [Qemu-devel] [Qemu-block] " Kevin Wolf
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Lieven @ 2017-10-17 10:33 UTC (permalink / raw)
  To: qemu block, qemu-devel@nongnu.org

Hi,

I noticed that Qemu quits at several points with an exit() if the supplied parameters in the commandline are incorrect.
This at some stages happens after there have already been connections to storage backends established.
These connections are not cleanly shut down in this case. For posix file backends that doesn't matter, but for other
backends this leads to errors. E.g. iSCSI Targets log an aborted iSCSI connection due to tcp reset.

I wonder what is the best way to fix this. A simply call to bdrv_close_all() in an atexit handler seems to work.
But is this a good solution? Maybe register this handler only until the VM starts.
Or do we need an atexit handler in each block driver that requires a clean shutdown?

Thanks,
Peter

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

end of thread, other threads:[~2017-11-07 11:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-17 10:33 [Qemu-devel] Clean Block Driver Shutdown Peter Lieven
2017-10-17 11:46 ` [Qemu-devel] [Qemu-block] " Kevin Wolf
2017-10-17 11:49   ` Peter Lieven
2017-10-20 10:08   ` Stefan Hajnoczi
2017-11-07 10:22     ` Markus Armbruster
2017-11-07 10:48       ` Peter Lieven
2017-11-07 11:02         ` Markus Armbruster
2017-11-07 11:09           ` Peter Lieven
2017-11-07 11:11         ` Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).