From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQz35-0000J6-0M for qemu-devel@nongnu.org; Wed, 15 Jul 2009 03:37:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQz30-0000GY-CC for qemu-devel@nongnu.org; Wed, 15 Jul 2009 03:37:06 -0400 Received: from [199.232.76.173] (port=55457 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQz30-0000GT-67 for qemu-devel@nongnu.org; Wed, 15 Jul 2009 03:37:02 -0400 Received: from mx20.gnu.org ([199.232.41.8]:7360) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MQz2z-0006Bt-Lc for qemu-devel@nongnu.org; Wed, 15 Jul 2009 03:37:01 -0400 Received: from mx2.redhat.com ([66.187.237.31]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQz2t-0001V9-T8 for qemu-devel@nongnu.org; Wed, 15 Jul 2009 03:36:56 -0400 Date: Wed, 15 Jul 2009 10:34:51 +0300 From: Gleb Natapov Subject: Re: [Qemu-devel] [PATCH] monitor: Add port write command Message-ID: <20090715073451.GF28046@redhat.com> References: <4A5C3FBB.10306@siemens.com> <4A5C9EDF.3060705@codemonkey.ws> <200907142030.27019.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200907142030.27019.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Jan Kiszka , Anthony Liguori , qemu-devel@nongnu.org On Tue, Jul 14, 2009 at 08:30:25PM +0100, Paul Brook wrote: > > What would be really cool about this change is that we could introduce a > > new set of commands to manipulate device state. We could save/restore > > individual device state and that would allow us to dump device state via > > the monitor and to manipulate individual fields of the device state. I > > think this could be pretty useful for debugging. > > I'd be reluctant to expose the savevm state to the user. > > For debugging qemu I don't see it providing any real benefit over firing up > GDB and poking directly at the device directly. > Not all environments where you need to debug things have gdb, qemu sources or even non striped qemu binary. > For debugging the guest there is some argument for exposing the device state > (preferably via the gdb stub). However I think the savevm data tends to expose > too many internal implementation details, rather than the interesting guest > state. For most devices I'd expect the IO regions to be a better fit, > especially if you want to prevent qemu crashing when the user does invalid > writes. > > Paul > -- Gleb.