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

2014-10-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 02.10.2014 um 11:04 hat Markus Armbruster geschrieben: >> 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. >> >>

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

2014-10-02 Thread Kevin Wolf
Am 02.10.2014 um 11:04 hat Markus Armbruster geschrieben: > 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 sil

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

2014-10-02 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