[Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-11 Thread Wenchao Xia
In the use of snapshot a way to retrieve related info at runtime is needed, so this serial of patches will merge some code for qemu and qemu-img, and add following interfaces for qemu: 1) qmp: query-images, show image info for a block device Example: -> { "execute": "query-images" } <- { "

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-12 Thread Stefan Hajnoczi
On Mon, Mar 11, 2013 at 07:23:02PM +0800, Wenchao Xia wrote: > In the use of snapshot a way to retrieve related info at runtime is needed, > so this serial of patches will merge some code for qemu and qemu-img, and add > following interfaces for qemu: > > 1) qmp: query-images, show image info fo

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-12 Thread Eric Blake
On 03/12/2013 04:07 AM, Stefan Hajnoczi wrote: > On Mon, Mar 11, 2013 at 07:23:02PM +0800, Wenchao Xia wrote: >> In the use of snapshot a way to retrieve related info at runtime is needed, >> so this serial of patches will merge some code for qemu and qemu-img, and add >> following interfaces for

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-12 Thread Wenchao Xia
于 2013-3-13 0:16, Eric Blake 写道: On 03/12/2013 04:07 AM, Stefan Hajnoczi wrote: On Mon, Mar 11, 2013 at 07:23:02PM +0800, Wenchao Xia wrote: In the use of snapshot a way to retrieve related info at runtime is needed, so this serial of patches will merge some code for qemu and qemu-img, and a

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-13 Thread Stefan Hajnoczi
On Wed, Mar 13, 2013 at 10:54:50AM +0800, Wenchao Xia wrote: > 于 2013-3-13 0:16, Eric Blake 写道: > >On 03/12/2013 04:07 AM, Stefan Hajnoczi wrote: > >>On Mon, Mar 11, 2013 at 07:23:02PM +0800, Wenchao Xia wrote: > >>> In the use of snapshot a way to retrieve related info at runtime is > >>> neede

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-13 Thread Eric Blake
On 03/13/2013 05:34 AM, Stefan Hajnoczi wrote: >> >> { 'type': 'BlockDeviceInfo', >> 'data': { 'file': 'str', 'ro': 'bool', 'drv': 'str', >> '*backing_file': 'str', 'backing_file_depth': 'int', >> 'encrypted': 'bool', 'encryption_key_missing': 'bool', >> 'bps':

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-13 Thread Kevin Wolf
Am 13.03.2013 um 13:29 hat Eric Blake geschrieben: > On 03/13/2013 05:34 AM, Stefan Hajnoczi wrote: > >> > >> { 'type': 'BlockDeviceInfo', > >> 'data': { 'file': 'str', 'ro': 'bool', 'drv': 'str', > >> '*backing_file': 'str', 'backing_file_depth': 'int', > >> 'encrypted':

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-13 Thread Stefan Hajnoczi
On Wed, Mar 13, 2013 at 06:29:18AM -0600, Eric Blake wrote: > On 03/13/2013 05:34 AM, Stefan Hajnoczi wrote: > >> > >> { 'type': 'BlockDeviceInfo', > >> 'data': { 'file': 'str', 'ro': 'bool', 'drv': 'str', > >> '*backing_file': 'str', 'backing_file_depth': 'int', > >> 'enc

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-14 Thread Wenchao Xia
于 2013-3-13 20:40, Stefan Hajnoczi 写道: On Wed, Mar 13, 2013 at 06:29:18AM -0600, Eric Blake wrote: On 03/13/2013 05:34 AM, Stefan Hajnoczi wrote: { 'type': 'BlockDeviceInfo', 'data': { 'file': 'str', 'ro': 'bool', 'drv': 'str', '*backing_file': 'str', 'backing_file_depth': 'int

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-15 Thread Kevin Wolf
Am 15.03.2013 um 07:07 hat Wenchao Xia geschrieben: > 于 2013-3-13 20:40, Stefan Hajnoczi 写道: > >The same applies for VMDK where one .vmdk can reference multiple extent > >files. > > > I'd like to confirm: This means a block device can have multiple > images at top level, but one image can still h

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-15 Thread Stefan Hajnoczi
On Fri, Mar 15, 2013 at 02:07:01PM +0800, Wenchao Xia wrote: > 于 2013-3-13 20:40, Stefan Hajnoczi 写道: > >This is why I asked about the array. A dict of ImageInfos is needed, > >they can refer to each other by key. > > > >If we go with an array we're painting ourselves into a corner. > > > >If we g

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-18 Thread Wenchao Xia
于 2013-3-15 16:07, Kevin Wolf 写道: Am 15.03.2013 um 07:07 hat Wenchao Xia geschrieben: 于 2013-3-13 20:40, Stefan Hajnoczi 写道: The same applies for VMDK where one .vmdk can reference multiple extent files. I'd like to confirm: This means a block device can have multiple images at top level,

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-18 Thread Kevin Wolf
Am 18.03.2013 um 11:30 hat Wenchao Xia geschrieben: > 于 2013-3-15 16:07, Kevin Wolf 写道: > >Am 15.03.2013 um 07:07 hat Wenchao Xia geschrieben: > >>于 2013-3-13 20:40, Stefan Hajnoczi 写道: > >>>The same applies for VMDK where one .vmdk can reference multiple extent > >>>files. > >>> > >> I'd like to