Re: [Qemu-devel] [PATCH 07/12] block: save the associated child in BlockDriverState

2013-06-21 Thread Paolo Bonzini
Il 21/06/2013 15:30, Marc-André Lureau ha scritto: > > Getting to the bottom BlockDriverState to be able to eject & > > change it. (it could also be named the "parent", but other parts > > of the code suggest the "child" name) > > There is already an interface for eject/change, whi

Re: [Qemu-devel] [PATCH 07/12] block: save the associated child in BlockDriverState

2013-06-21 Thread Marc-André Lureau
Hi On Fri, Jun 21, 2013 at 1:57 PM, Paolo Bonzini wrote: > > > > What exactly are you trying to do here (I guess I'll understand more > > when I get to the later patches)? > > > > Getting to the bottom BlockDriverState to be able to eject & change it. > > (it could also be named the "pa

Re: [Qemu-devel] [PATCH 07/12] block: save the associated child in BlockDriverState

2013-06-21 Thread Paolo Bonzini
Il 21/06/2013 10:36, Marc-André Lureau ha scritto: > Hi > > > On Fri, Jun 21, 2013 at 12:25 AM, Paolo Bonzini > wrote: > > Il 20/06/2013 19:46, Marc-André Lureau ha scritto: > > This allows the Spice block driver to eject the associated device. > > The c

Re: [Qemu-devel] [PATCH 07/12] block: save the associated child in BlockDriverState

2013-06-21 Thread Marc-André Lureau
Hi On Fri, Jun 21, 2013 at 12:25 AM, Paolo Bonzini wrote: > Il 20/06/2013 19:46, Marc-André Lureau ha scritto: > > This allows the Spice block driver to eject the associated device. > > The child can change when you have for example a streaming operation. > Ah, can you point me to some functio

Re: [Qemu-devel] [PATCH 07/12] block: save the associated child in BlockDriverState

2013-06-20 Thread Paolo Bonzini
Il 20/06/2013 19:46, Marc-André Lureau ha scritto: > This allows the Spice block driver to eject the associated device. The child can change when you have for example a streaming operation. What exactly are you trying to do here (I guess I'll understand more when I get to the later patches)? Can

[Qemu-devel] [PATCH 07/12] block: save the associated child in BlockDriverState

2013-06-20 Thread Marc-André Lureau
This allows the Spice block driver to eject the associated device. Signed-off-by: Marc-André Lureau --- block.c | 46 +- include/block/block_int.h | 1 + 2 files changed, 30 insertions(+), 17 deletions(-) diff --git a/block.c b/bloc