diff options
author | Kevin Wolf <kwolf@redhat.com> | 2020-09-24 17:27:02 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2020-10-02 15:46:40 +0200 |
commit | a6ff7989662d659aed0888670e77e68cb8c9bd81 (patch) | |
tree | 67af6fa4a55dce3eb78a40f53433ffc49a38e59b /gdb-xml | |
parent | b6076afcabc7a3947d0b212b956f4575e6795c56 (diff) | |
download | qemu-a6ff7989662d659aed0888670e77e68cb8c9bd81.zip qemu-a6ff7989662d659aed0888670e77e68cb8c9bd81.tar.gz qemu-a6ff7989662d659aed0888670e77e68cb8c9bd81.tar.bz2 |
block/export: Allocate BlockExport in blk_exp_add()
Instead of letting the driver allocate and return the BlockExport
object, allocate it already in blk_exp_add() and pass it. This allows us
to initialise the generic part before calling into the driver so that
the driver can just use these values instead of having to parse the
options a second time.
For symmetry, move freeing the BlockExport to blk_exp_unref().
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200924152717.287415-17-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'gdb-xml')
0 files changed, 0 insertions, 0 deletions