From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPquL-0005N4-NE for qemu-devel@nongnu.org; Thu, 03 May 2012 03:57:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPquJ-00016v-23 for qemu-devel@nongnu.org; Thu, 03 May 2012 03:57:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPquI-00016l-QC for qemu-devel@nongnu.org; Thu, 03 May 2012 03:56:58 -0400 Message-ID: <4FA23A44.6040908@redhat.com> Date: Thu, 03 May 2012 09:56:52 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1335559216-13849-1-git-send-email-lcapitulino@redhat.com> <1335559216-13849-3-git-send-email-lcapitulino@redhat.com> <4FA0DD87.6080302@redhat.com> <20120502153453.3ee5dc8e@doriath.home> In-Reply-To: <20120502153453.3ee5dc8e@doriath.home> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/3] runstate: introduce suspended state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com Hi, > I think that the question we have to answer is: apart from the keyboard > and mouse, is there any device that wants to run while qemu is suspended? pretty much anything which may wake up the guest. The nics for example for wake-on-lan. I'm not sure whenever they care about the runstate at all though. Mouse and keyboard ignore events when the guest is stopped so if you type into a vnc client for a stopped guest the events wouldn't get queued up and cause unwanted effects when unpausing the guest. When suspended we want forward the events though so wakeup-by-keyboard works. Not sure whenever we have simliar logic elsewhere (like stop queuing network packets when the guest doesn't run). cheers, Gerd