[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1.1 01/22] block: fix snapshot on QED
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH 1.1 01/22] block: fix snapshot on QED |
Date: |
Wed, 09 May 2012 14:15:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
Am 08.05.2012 16:51, schrieb Paolo Bonzini:
> QED's opaque data includes a pointer back to the BlockDriverState.
> This breaks when bdrv_append shuffles data between bs_new and bs_top.
> To avoid this, add a "rebind" function that tells the driver about
> the new relationship between the BlockDriverState and its opaque.
>
> The patch also adds rebind to VVFAT for completeness, even though
> it is not used with live snapshots.
>
> Reviewed-by: Stefan Hajnoczi <address@hidden>
> Reviewed-by: Kevin Wolf <address@hidden>
> Signed-off-by: Paolo Bonzini <address@hidden>
I still don't like this patch. We'll not get the proper solution in time
for 1.1, but I hope that we can get rid of bdrv_rebind() again when
BlockDriverState and the block device backend are split and devices no
longer have direct pointers to BlockDriverStates.
Kevin
- [Qemu-devel] [PATCH 1.1 00/22] Rebased queue of block patches., Paolo Bonzini, 2012/05/08
- [Qemu-devel] [PATCH 1.1 02/22] block: another bdrv_append fix, Paolo Bonzini, 2012/05/08
- [Qemu-devel] [PATCH 1.1 01/22] block: fix snapshot on QED, Paolo Bonzini, 2012/05/08
- Re: [Qemu-devel] [PATCH 1.1 01/22] block: fix snapshot on QED,
Kevin Wolf <=
- [Qemu-devel] [PATCH 1.1 03/22] block: do not reuse the backing file across bdrv_close/bdrv_open, Paolo Bonzini, 2012/05/08
- [Qemu-devel] [PATCH 1.1 05/22] block: add block_job_sleep_ns, Paolo Bonzini, 2012/05/08
- [Qemu-devel] [PATCH 1.1 04/22] block: fully delete bs->file when closing, Paolo Bonzini, 2012/05/08
- [Qemu-devel] [PATCH 1.1 06/22] block: wait for job callback in block_job_cancel_sync, Paolo Bonzini, 2012/05/08
- [Qemu-devel] [PATCH 1.1 07/22] block: simplify path_is_absolute, Paolo Bonzini, 2012/05/08
- [Qemu-devel] [PATCH 1.1 09/22] block: move field reset from bdrv_open_common to bdrv_close, Paolo Bonzini, 2012/05/08
- [Qemu-devel] [PATCH 1.1 08/22] block: protect path_has_protocol from filenames with colons, Paolo Bonzini, 2012/05/08
- [Qemu-devel] [PATCH 1.1 10/22] qemu-img: make "info" backing file output correct and easier to use, Paolo Bonzini, 2012/05/08