]> git.proxmox.com Git - mirror_qemu.git/commit - block/block-backend.c
block: Remove blk_attach_dev_legacy() / legacy_dev code
authorThomas Huth <thuth@redhat.com>
Wed, 23 Jan 2019 08:56:01 +0000 (09:56 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 1 Feb 2019 12:46:45 +0000 (13:46 +0100)
commitd09ea2d22786e97c5c03cd4d4888f06bb89f8dc7
tree24098564029ef4ce663faa7556ad64ad9f990c99
parent8be25de64315ef768353eb61f2b2bf6cddc34230
block: Remove blk_attach_dev_legacy() / legacy_dev code

The last user of blk_attach_dev_legacy() was the code in xen_disk which
has recently been reworked. Now there is no user for this legacy function
anymore. Thus we can finally remove all code related to the "legacy_dev"
flag, too, and turn the related "void *" in block-backend.c into proper
"DeviceState *" to fix some of the remaining TODOs there.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
include/sysemu/block-backend.h