Re: [Qemu-devel] [PATCH v4 03/23] block: Connect BlockBackend to BlockDriverState

2014-10-01 Thread Max Reitz
On 30.09.2014 21:25, Markus Armbruster wrote: Convenience function blk_new_with_bs() creates a BlockBackend with its BlockDriverState. Callers have to unref both. The commit after next will relieve them of the need to unref the BlockDriverState. Complication: due to the silly way drive_del wor

[Qemu-devel] [PATCH v4 03/23] block: Connect BlockBackend to BlockDriverState

2014-09-30 Thread Markus Armbruster
Convenience function blk_new_with_bs() creates a BlockBackend with its BlockDriverState. Callers have to unref both. The commit after next will relieve them of the need to unref the BlockDriverState. Complication: due to the silly way drive_del works, we need a way to hide a BlockBackend, just l