Re: [Qemu-devel] [PATCH 03/12] block: Introduce BlockBackendPublic

2016-03-24 Thread Kevin Wolf
Am 23.03.2016 um 22:35 hat Eric Blake geschrieben: > On 03/23/2016 03:09 AM, Kevin Wolf wrote: > >>> +++ b/block/block-backend.c > >>> @@ -33,6 +33,7 @@ struct BlockBackend { > >>> DriveInfo *legacy_dinfo;/* null unless created by drive_new() */ > >>> QTAILQ_ENTRY(BlockBackend) link;

Re: [Qemu-devel] [PATCH 03/12] block: Introduce BlockBackendPublic

2016-03-23 Thread Eric Blake
On 03/23/2016 03:09 AM, Kevin Wolf wrote: >>> +++ b/block/block-backend.c >>> @@ -33,6 +33,7 @@ struct BlockBackend { >>> DriveInfo *legacy_dinfo;/* null unless created by drive_new() */ >>> QTAILQ_ENTRY(BlockBackend) link; /* for block_backends */ >>> QTAILQ_ENTRY(BlockB

Re: [Qemu-devel] [PATCH 03/12] block: Introduce BlockBackendPublic

2016-03-23 Thread Kevin Wolf
Am 22.03.2016 um 22:53 hat Eric Blake geschrieben: > On 03/22/2016 09:33 AM, Kevin Wolf wrote: > > Some features, like I/O throttling, are implemented outside > > block-backend.c, but still want to keep BlockBackends in a list. In > > order to avoid exposing the whole struct layout in the public he

Re: [Qemu-devel] [PATCH 03/12] block: Introduce BlockBackendPublic

2016-03-22 Thread Eric Blake
On 03/22/2016 09:33 AM, Kevin Wolf wrote: > Some features, like I/O throttling, are implemented outside > block-backend.c, but still want to keep BlockBackends in a list. In > order to avoid exposing the whole struct layout in the public header > file, this patch introduces an embedded public struc

[Qemu-devel] [PATCH 03/12] block: Introduce BlockBackendPublic

2016-03-22 Thread Kevin Wolf
Some features, like I/O throttling, are implemented outside block-backend.c, but still want to keep BlockBackends in a list. In order to avoid exposing the whole struct layout in the public header file, this patch introduces an embedded public struct where list entry structs can be added and a pair