replace bdrv_{get, put}_buffer with bdrv_{load, save}_vmstate
commit45566e9c9930ebdfb82822c99a792c5caedb38b0
authorChristoph Hellwig <hch@lst.de>
Fri, 10 Jul 2009 21:11:57 +0000 (10 23:11 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 16 Jul 2009 13:28:13 +0000 (16 08:28 -0500)
treec55aab589478e9b76ecd7e90e69f2967c72bf578
parente1e8f35a4f59d82ab9a5361c3990c8dadd2e7678
replace bdrv_{get, put}_buffer with bdrv_{load, save}_vmstate

The VM state offset is a concept internal to the image format.  Replace
the old bdrv_{get,put}_buffer method that require an index into the
image file that is constructed from the VM state offset and an offset
into the vmstate with the bdrv_{load,save}_vmstate that just take an
offset into the VM state.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block.c
block.h
block/qcow2.c
block_int.h
savevm.c