Received: from eggs.gnu.org ([2001:4830:134:3::10]:53843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIaaL-0000JY-Pv for qemu-devel@nongnu.org; Tue, 03 Feb 2015 05:19:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIaaI-0006Km-Fd for qemu-devel@nongnu.org; Tue, 03 Feb 2015 05:19:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIaT4-0003X2-HS for qemu-devel@nongnu.org; Tue, 03 Feb 2015 05:12:26 -0500 Date: Tue, 3 Feb 2015 11:12:22 +0100 From: Amit Shah Message-ID: <20150203101222.GB9699@grmbl.mre> References: <20150129151527.GE1102@redhat.com> <54CA500E.8030608@redhat.com> <20150129155425.GE2391@work-vm> <54CA594E.5030605@redhat.com> <20150129162815.GG2391@work-vm> <54CA71CD.3090304@redhat.com> <20150129202154.GH2391@work-vm> <54CA9C8C.7030906@redhat.com> <20150130093849.GB2370@work-vm> <54CB53E2.5060400@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54CB53E2.5060400@redhat.com> Subject: Re: [Qemu-devel] [RFC 1/1] Execute arbitrary QMP commands from command line List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: quintela@redhat.com, liang.z.li@intel.com, "Dr. David Alan Gilbert" , qemu-devel@nongnu.org On (Fri) 30 Jan 2015 [10:50:26], Paolo Bonzini wrote: > > > On 30/01/2015 10:38, Dr. David Alan Gilbert wrote: > > * Eric Blake (eblake@redhat.com) wrote: > >> On 01/29/2015 01:21 PM, Dr. David Alan Gilbert wrote: > >>> * Eric Blake (eblake@redhat.com) wrote: > >>>> On 01/29/2015 09:28 AM, Dr. David Alan Gilbert wrote: > >>>>> > >>>>> So what would the .args_type look like in qmp-commands.hx; something like this? > >>>>> > >>>>> .args-type = "type:s,port:-i,host:-s,command:-s" > >>>> > >>>> No, it would be more like the blockdev-add interface, where one command > >>>> accepts a dictionary object containing a union of valid values, where > >>>> the set of valid values is determined by the discriminator field. > >>>> .args_type = "options:q". > >>> > >>> What causes the parser to generate a 'BlockdevOptions' as opposed to any > >>> standard options type for the parameter of qmp_blockdev_add? > >> > >> Kevin Wolf has the most experience here, as he was the one that figured > >> out how to correlate command line and QMP as part of adding blockdev-add. > > > > OK, this is getting more complicated than I'd expected; how about a simpler > > suggestion. > > > > The current suggestion is: > > Modify -incoming to take 'pause' as an argument > > -S is just the same. (just putting this in w/o actually checking..) Does -S and -incoming differ in the 'do not read disks' case? I recall we had to add consistency checks so that the destination qemu didn't inadvertently read disk metadata on shared storage before migration had finished (so that an in-progress disk size / partition size update on the src wasn't getting reflected on the dest, causing migration failures during guest installation). > > Add migrate-incoming command that takes parsed URI > > > > New suggestion: > > Modify -incoming to take a pause: prefix (e.g. -incoming pause:tcp:host:port ) > > Add migrate-incoming-start command (takes no arguments). > > Another suggestion: > > Add incoming argument to the existing URI-based command migrate. > > Later on, if ever, add start-migration command that takes structured > options, make HMP and QMP migrate wrappers for start-migration. FWIW I've only followed a part of the thread so far, catching up on the rest, but the pause option looks good to me. Amit