[Qemu-devel] [PATCH v4 5/7] commit: support commit active layer

2013-09-30 Thread Fam Zheng
If active is top, it will be mirrored to base, (with block/mirror.c code), then the image is switched when user completes the block job. Signed-off-by: Fam Zheng f...@redhat.com --- blockdev.c | 42 -- 1 file changed, 40 insertions(+), 2 deletions(-) diff

Re: [Qemu-devel] [PATCH v4 5/7] commit: support commit active layer

2013-09-30 Thread Paolo Bonzini
Il 30/09/2013 14:02, Fam Zheng ha scritto: +/* Mirror code already swapped bs and base, we drop the bs loop chain + * formed by the swap: break the loop chain, trigger the chain unref. + */ +p = info-base-backing_hd; +info-base-backing_hd = NULL; +