Received: from [140.186.70.92] (port=53842 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Psa6v-0001eX-53 for qemu-devel@nongnu.org; Thu, 24 Feb 2011 07:15:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Psa6t-0005j8-Vd for qemu-devel@nongnu.org; Thu, 24 Feb 2011 07:15:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:30680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Psa6t-0005iv-K2 for qemu-devel@nongnu.org; Thu, 24 Feb 2011 07:15:55 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] Re: [patch 2/3] Add support for live block copy References: <20110222170004.808373778@redhat.com> <20110222170115.710717278@redhat.com> <4D642181.4080509@codemonkey.ws> <20110222210735.GA9372@amt.cnet> <4D64266A.3060106@codemonkey.ws> <20110222230935.GA11082@amt.cnet> <4D644343.4050800@codemonkey.ws> <4D65051A.6070707@redhat.com> <4D651B20.70405@codemonkey.ws> <4D652852.60505@redhat.com> <4D6568E1.4060601@codemonkey.ws> Date: Thu, 24 Feb 2011 13:15:41 +0100 In-Reply-To: <4D6568E1.4060601@codemonkey.ws> (Anthony Liguori's message of "Wed, 23 Feb 2011 14:06:57 -0600") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Jes.Sorensen@redhat.com, Marcelo Tosatti , Avi Kivity , qemu-devel@nongnu.org Anthony Liguori writes: > On 02/23/2011 11:26 AM, Markus Armbruster wrote: >>> I don't think it's reasonable to have three different ways to interact >>> with qemu, all needed: the command line, reading and writing the >>> stateful config file, and the monitor. I'd rather push for starting >>> qemu with a blank guest and assembling (cold-plugging) all the >>> hardware via the monitor before starting the guest. >>> >> Exactly. And qdev has brought his within our reach. >> > > Actually, QMP is the star of the show here, not qdev. > > The way we get here is by incrementally converting the option handling > to be qmp calls. For instance, instead of: > > case QEMU_OPTION_name: > qemu_name = optarg; > break; > > We do: > > case QEMU_OPTION_name: > qmp_set_name(optarg, NULL); > break; > > When we can compile vl.c with nothing more than QMP dependencies, > we've achieved the goals here. This will mean adding a lot of new QMP > commands. > > There are some command line options that must be handled before the > machine is initialized and QMP is normally run. For 0.16, we can > introduce a new QMP mode whereas the event loop gets to run before > doing machine init and explicit create_machine() command is needed. > This is the final bit that will be needed to realize this goal. > > A lot of good things come out of this. Quite a lot of these new > commands don't strictly need to run before machine init (like -name) > which means we'll get the ability to change a lot of parameters > without rebooting the guest which couldn't be changed before. > > And this is all incremental stuff that can be done in parallel of the > QAPI work. We just need to do the work of adding the function calls > (or function call wrappers where appropriate). Well, I wouldn't put "let's create a sane separation between option parsing and machine configuration" under the "QEMU *Monitor* Protocol" flag, but I certainly don't mind you hoisting whatever flag pleases you.