Received: from eggs.gnu.org ([208.118.235.92]:36887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVMJO-0005Cu-49 for qemu-devel@nongnu.org; Thu, 25 Apr 2013 09:34:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVMJM-0000He-Up for qemu-devel@nongnu.org; Thu, 25 Apr 2013 09:34:10 -0400 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:43517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVMJM-0000HZ-PS for qemu-devel@nongnu.org; Thu, 25 Apr 2013 09:34:08 -0400 Received: by mail-we0-f175.google.com with SMTP id t11so2688111wey.34 for ; Thu, 25 Apr 2013 06:34:08 -0700 (PDT) Date: Thu, 25 Apr 2013 15:34:05 +0200 From: Stefan Hajnoczi Message-ID: <20130425133405.GC10819@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2 00/12] covert savevm, loadvm and delvm into qapi List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Hrdina Cc: kwolf@redhat.com, xiawenc@linux.vnet.ibm.com, lcapitulino@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com On Wed, Apr 24, 2013 at 05:31:58PM +0200, Pavel Hrdina wrote: > I'm sending patches for all commands in one patch series because the > savevm command depends on delvm command. > > This patch series introduces new design of these commands: > > * QMP vm-snapshot-save: > - { 'command': 'vm-snapshot-save', > 'data': { 'name': 'str' }, > 'returns': 'SnapshotInfo' } > - vm-snapshot-save returns an error if there is an existing snapshot with > the same name > - you cannot provide an id for a new snapshot > - all information about created snapshot will be returned > > * QMP vm-snapshot-load > - { 'command': 'vm-snapshot-load', > 'data': { '*name': 'str', '*id': 'str' }, > 'returns': 'SnapshotInfo' } > - one of the name or id must be provided > - if both are provided they will match only the snapshot with the same name > and id > - returns SnapshotInfo only if the snapshot exists. > > * QMP vm-snapshot-delete: > - { 'command': 'vm-snapshot-delete', > 'data': { '*name': 'str', '*id': 'str' }, > 'returns': 'SnapshotInfo' } > - same rules as vm-snapshot-load If I cannot specify the id when creating the snapshot, then why can I provide it when loading/deleting? In other words, is it useful to support the id arguments? If yes, please include the reason in the API documentation.