From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=46176 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoUxp-00046W-Ih for qemu-devel@nongnu.org; Thu, 26 Aug 2010 01:25:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoUxo-0008Mu-C5 for qemu-devel@nongnu.org; Thu, 26 Aug 2010 01:25:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39532) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoUxo-0008Mj-5t for qemu-devel@nongnu.org; Thu, 26 Aug 2010 01:25:24 -0400 Date: Thu, 26 Aug 2010 10:55:13 +0530 From: Amit Shah Subject: Re: [Qemu-devel] [PATCH V2] balloon: Don't try fetching info if machine is stopped Message-ID: <20100826052513.GE18351@amit-laptop.redhat.com> References: <8450ea8e785c9049f0b3edddc01650a8c4b9ffe7.1282265244.git.amit.shah@redhat.com> <4C719C7E.6030606@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C719C7E.6030606@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Paolo Bonzini , agl@us.ibm.com, qemu list , Juan Quintela On (Sun) Aug 22 2010 [16:54:06], Anthony Liguori wrote: > On 08/19/2010 07:48 PM, Amit Shah wrote: > >If the machine is stopped and 'info balloon' is invoked, the monitor > >process just hangs waiting for info from the guest. Return the most > >recent balloon data in that case. > > > >See https://bugzilla.redhat.com/show_bug.cgi?id=623903 > > > >Reported-by: > >Signed-off-by: Amit Shah > > !vm_running is just a special case of an unresponsive guest. Even > if the guest was running, if it was oops'd and the administrator > didn't know, you would have the same issue. True. > I'd suggest using a timeout based on rt_clock. If the stats request > times out, print an appropriate message to the user. What should the timeout be? A heavily-loaded guest could reply later which would cause problems -- I don't think we handle async input from the guest today. Amit