qemu-io: Implement bdrv_load_vmstate/bdrv_save_vmstate
commitca94dbc753ecc7318f329106f55712f1faaa7cf2
authorKevin Wolf <kwolf@redhat.com>
Wed, 15 Jul 2009 10:06:58 +0000 (15 12:06 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 16 Jul 2009 22:28:50 +0000 (16 17:28 -0500)
tree8580e4e5700e0062dc1f45cfa5847b0420e6795f
parentbf4e5d92979c5f7b0b5e5d0a261954aa87f02ac1
qemu-io: Implement bdrv_load_vmstate/bdrv_save_vmstate

The load_vmstate and save_vmstate functions are implemented as a
variation of the normal read/write operation, enabled by the -b option.
This is the same mechanism as is used to switch from read/write to
pread/pwrite.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-io.c