migration/block: Convert load to BlockBackend
commitad2964b4fff89a32c20cfad8d904a96929956c9e
authorKevin Wolf <kwolf@redhat.com>
Wed, 25 May 2016 15:20:06 +0000 (25 17:20 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 8 Jun 2016 08:21:08 +0000 (8 10:21 +0200)
tree3bdbaab29c00662adf271800d14299ab29271dfc
parentc1499a5e73ae81b597869263ed8ac87bdaafeff7
migration/block: Convert load to BlockBackend

This converts the loading part of block migration to use BlockBackend
interfaces rather than accessing the BlockDriverState directly.

Note that this takes a lazy shortcut. We should really use a separate
BlockBackend that is configured for the migration rather than for the
guest (e.g. writethrough caching is unnecessary) and holds its own
reference to the BlockDriverState, but the impact isn't that big and we
didn't have a separate migration reference before either, so it must be
good enough, I guess...

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
migration/block.c