[Qemu-devel] Re: [PATCH 1/3] block: allow migration to work with image files

2010-09-16 Thread Kevin Wolf
Am 15.09.2010 18:03, schrieb Juan Quintela: > Kevin Wolf wrote: >> Am 11.09.2010 16:04, schrieb Anthony Liguori: > >> There is a simple generic implementation: >> >> drv = bs->drv; >> drv->close(bs); >> drv->open(bs, bs->open_flags); >> >> Note that this only reopens e.g. the qcow2 layer, but not

[Qemu-devel] Re: [PATCH 1/3] block: allow migration to work with image files

2010-09-15 Thread Juan Quintela
Kevin Wolf wrote: > Am 11.09.2010 16:04, schrieb Anthony Liguori: > There is a simple generic implementation: > > drv = bs->drv; > drv->close(bs); > drv->open(bs, bs->open_flags); > > Note that this only reopens e.g. the qcow2 layer, but not the image > file, which is bs->file. > > This works for

[Qemu-devel] Re: [PATCH 1/3] block: allow migration to work with image files

2010-09-15 Thread Juan Quintela
Avi Kivity wrote: > On 09/12/2010 07:10 PM, Anthony Liguori wrote: >> On 09/12/2010 11:06 AM, Avi Kivity wrote: >>> On 09/12/2010 05:26 PM, Anthony Liguori wrote: On 09/12/2010 08:28 AM, Avi Kivity wrote: > On 09/12/2010 03:06 PM, Anthony Liguori wrote: >> >> Backing files and

[Qemu-devel] Re: [PATCH 1/3] block: allow migration to work with image files

2010-09-15 Thread Juan Quintela
Avi Kivity wrote: > On 09/12/2010 03:06 PM, Anthony Liguori wrote: >> >> Backing files and logical size shouldn't change during live migration. > > Why not? It is supposed to be the same in both sides O:-) If you want to extend a disk, you need to told qemu about that. Either before or after mi

[Qemu-devel] Re: [PATCH 1/3] block: allow migration to work with image files

2010-09-15 Thread Juan Quintela
Anthony Liguori wrote: > Image files have two types of data: immutable data that describes things like > image size, backing files, etc. and mutable data that includes offset and > reference count tables. > > Today, image formats aggressively cache mutable data to improve performance. > In > som

[Qemu-devel] Re: [PATCH 1/3] block: allow migration to work with image files

2010-09-13 Thread Anthony Liguori
On 09/13/2010 03:21 AM, Kevin Wolf wrote: Am 11.09.2010 16:04, schrieb Anthony Liguori: Image files have two types of data: immutable data that describes things like image size, backing files, etc. and mutable data that includes offset and reference count tables. Today, image formats aggres

[Qemu-devel] Re: [PATCH 1/3] block: allow migration to work with image files

2010-09-13 Thread Kevin Wolf
Am 11.09.2010 16:04, schrieb Anthony Liguori: > Image files have two types of data: immutable data that describes things like > image size, backing files, etc. and mutable data that includes offset and > reference count tables. > > Today, image formats aggressively cache mutable data to improve pe