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)
commit93a11317a1363e0fa241eb0c02cc18b64a2fb476
tree7963345d9fa86b3ffe81a9d763ac99a544983b0e
parent73c5b6a9c7f00f2b9671bc4542a8373d0ace7dd9
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