On 2014-11-19 at 15:19, Stefan Hajnoczi wrote:
Add dataplane support to the change-backing-file QMP commands.  By
acquiring the AioContext we avoid race conditions with the dataplane
thread which may also be accessing the BlockDriverState.

Note that this command operates on both bs and a node in its chain
(image_bs).  The bdrv_chain_contains(bs, image_bs) check guarantees that
bs and image_bs are in the same AioContext.

Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>
---
  blockdev.c                      | 19 +++++++++++++------
  hw/block/dataplane/virtio-blk.c |  1 +
  2 files changed, 14 insertions(+), 6 deletions(-)

Reviewed-by: Max Reitz <mre...@redhat.com>

Reply via email to