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

2014-09-11 Thread Markus Armbruster
Benoît Canet benoit.ca...@irqsave.net writes: The Wednesday 10 Sep 2014 à 10:13:32 (+0200), Markus Armbruster wrote : The pointer from BlockBackend to BlockDriverState is a strong reference, managed with bdrv_ref() / bdrv_unref(), the back-pointer is a weak one. Convenience function

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

2014-09-11 Thread Markus Armbruster
Kevin Wolf kw...@redhat.com writes: Am 10.09.2014 um 10:13 hat Markus Armbruster geschrieben: The pointer from BlockBackend to BlockDriverState is a strong reference, managed with bdrv_ref() / bdrv_unref(), the back-pointer is a weak one. Convenience function blk_new_with_bs() creates a

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

2014-09-10 Thread Markus Armbruster
The pointer from BlockBackend to BlockDriverState is a strong reference, managed with bdrv_ref() / bdrv_unref(), the back-pointer is a weak one. Convenience function blk_new_with_bs() creates a BlockBackend with its BlockDriverState. Callers have to unref both. The commit after next will

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

2014-09-10 Thread Benoît Canet
The Wednesday 10 Sep 2014 à 10:13:32 (+0200), Markus Armbruster wrote : The pointer from BlockBackend to BlockDriverState is a strong reference, managed with bdrv_ref() / bdrv_unref(), the back-pointer is a weak one. Convenience function blk_new_with_bs() creates a BlockBackend with its

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

2014-09-10 Thread Kevin Wolf
Am 10.09.2014 um 10:13 hat Markus Armbruster geschrieben: The pointer from BlockBackend to BlockDriverState is a strong reference, managed with bdrv_ref() / bdrv_unref(), the back-pointer is a weak one. Convenience function blk_new_with_bs() creates a BlockBackend with its BlockDriverState.