mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
virtio-blk: Convert VirtIOBlockReq.elem to pointer
This will make converging with dataplane code easier. Add virtio_blk_free_request to handle the freeing of request internal fields. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
09f6458770
commit
671ec3f056
2 changed files with 47 additions and 40 deletions
|
@ -136,7 +136,7 @@ typedef struct VirtIOBlock {
|
|||
|
||||
typedef struct VirtIOBlockReq {
|
||||
VirtIOBlock *dev;
|
||||
VirtQueueElement elem;
|
||||
VirtQueueElement *elem;
|
||||
struct virtio_blk_inhdr *in;
|
||||
struct virtio_blk_outhdr *out;
|
||||
QEMUIOVector qiov;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue