From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JX1a8-0001o5-ET for qemu-devel@nongnu.org; Wed, 05 Mar 2008 16:55:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JX1a6-0001nM-Iq for qemu-devel@nongnu.org; Wed, 05 Mar 2008 16:55:23 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JX1a6-0001nG-E9 for qemu-devel@nongnu.org; Wed, 05 Mar 2008 16:55:22 -0500 Received: from an-out-0708.google.com ([209.85.132.244]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JX1a6-0000TD-8x for qemu-devel@nongnu.org; Wed, 05 Mar 2008 16:55:22 -0500 Received: by an-out-0708.google.com with SMTP id b38so358979ana.130 for ; Wed, 05 Mar 2008 13:55:21 -0800 (PST) Message-ID: <47CF16C5.6040102@codemonkey.ws> Date: Wed, 05 Mar 2008 15:55:17 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Signal handling and qcow2 image corruption References: <47CF0E0C.9030807@quinthar.com> In-Reply-To: <47CF0E0C.9030807@quinthar.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org David Barrett wrote: > I'm tracking down a image corruption issue and I'm curious if you can > answer the following: > > 1) Is there any difference between sending a "TERM" signal to the QEMU > process and typing "quit" at the monitor? Yes. Since QEMU is single threaded, when you issue a quit, you know you aren't in the middle of writing qcow2 meta data to disk. > 2) Will sending TERM corrupt the 'gcow2' image (in ways other than > normal guest OS dirty shutdown)? Possibly, yes. > 3) Assuming I always start QEMU using "-loadvm", is there any risk in > using 'kill' to send SIGTERM to the QMEU process when done? Yes. If you want to SIGTERM QEMU, the safest thing to do is use -snapshot. Regards, Anthony Liguori