bochs: use qemu block API
authorChristoph Hellwig <hch@lst.de>
Tue, 4 May 2010 10:44:21 +0000 (12:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 17 May 2010 08:20:05 +0000 (10:20 +0200)
commit7a6f391376c61af1dce2d624a4fcff8eec4fa097
tree7963345d9fa86b3ffe81a9d763ac99a544983b0e
parentefbca10f10af2c0d7282e5dc49713479be98880b
bochs: use qemu block API

Use bdrv_pwrite to access the backing device instead of pread, and
convert the driver to implementing the bdrv_open method which gives
it an already opened BlockDriverState for the underlying device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/bochs.c