]> xenbits.xensource.com Git - qemu-upstream-unstable.git/commit
block: Omit bdrv_find_format for essential drivers
authorMax Reitz <mreitz@redhat.com>
Tue, 2 Dec 2014 17:32:42 +0000 (18:32 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Sun, 22 Feb 2015 18:03:25 +0000 (12:03 -0600)
commite81703b42c7552e9f43701a3e7fd937b7fa3080b
tree37a9d38b0b5c4785532c3bdeafb57a231a13474c
parent7e213f853551c6d528af9f7bddb3ab1b7b03903f
block: Omit bdrv_find_format for essential drivers

We can always assume raw, file and qcow2 being available; so do not use
bdrv_find_format() to locate their BlockDriver objects but statically
reference the respective objects.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit ef8104378c4a0497be079e48ee5ac5a89c68f978)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block.c
block/qcow2.c