[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introdu
From: |
Pavel Hrdina |
Subject: |
Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command |
Date: |
Wed, 10 Apr 2013 16:05:15 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 |
Here is another proposal how to handle vm snapshots:
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
- on success all information about created snapshot will be returned
QMP vm-snapshot-load
- { 'command': 'vm-snapshot-load',
'data': { '*name': 'str', '*id': 'int' },
'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': 'int' },
'returns': 'SnapshotInfo' }
- same rules as vm-snapshot-load
HMP savevm:
- args_type = "force:-f,name:s?",
- if the name is not provided the HMP command will generates new
one for QMP command
- if there is already a snapshot with provided or generated name
it will fails
- there will be an optional -f parameter to force saving requested
snapshot and it will internally use vm-snapshot-delete and then
vm-snapshot-save
- all information about created snapshot will be printed
HMP loadvm:
- args_type = "name:s?,id:i?",
- follow the same behavior as the QMP command
HMP delvm:
- args_type = "name:s?,id:i?"
- same rules as loadvm
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Markus Armbruster, 2013/04/10
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Pavel Hrdina, 2013/04/10
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Eric Blake, 2013/04/10
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Luiz Capitulino, 2013/04/10
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Eric Blake, 2013/04/10
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Pavel Hrdina, 2013/04/10
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Luiz Capitulino, 2013/04/10
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Pavel Hrdina, 2013/04/10
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command,
Pavel Hrdina <=
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Eric Blake, 2013/04/10
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Pavel Hrdina, 2013/04/10
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Wenchao Xia, 2013/04/16
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Markus Armbruster, 2013/04/11
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Kevin Wolf, 2013/04/15
- Re: [Qemu-devel] [PATCH v4 00/11] convert savevm to use qapi and introduce qmp command, Eric Blake, 2013/04/15