mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
block: Connect BlockBackend and DriveInfo
Make the BlockBackend own the DriveInfo. Change blockdev_init() to return the BlockBackend instead of the DriveInfo. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
7e7d56d9e0
commit
18e46a033d
4 changed files with 79 additions and 38 deletions
|
@ -46,6 +46,10 @@ struct DriveInfo {
|
|||
QTAILQ_ENTRY(DriveInfo) next;
|
||||
};
|
||||
|
||||
DriveInfo *blk_legacy_dinfo(BlockBackend *blk);
|
||||
DriveInfo *blk_set_legacy_dinfo(BlockBackend *blk, DriveInfo *dinfo);
|
||||
BlockBackend *blk_by_legacy_dinfo(DriveInfo *dinfo);
|
||||
|
||||
void override_max_devs(BlockInterfaceType type, int max_devs);
|
||||
|
||||
DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue