[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH 03/40] virtio: move allocation to v
From: |
Fam Zheng |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH 03/40] virtio: move allocation to virtqueue_pop/vring_pop |
Date: |
Mon, 30 Nov 2015 11:00:38 +0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, 11/24 19:00, Paolo Bonzini wrote:
> @@ -436,10 +454,11 @@ static void control_out(VirtIODevice *vdev, VirtQueue
> *vq)
> buf = g_malloc(cur_len);
> len = cur_len;
> }
> - iov_to_buf(elem.out_sg, elem.out_num, 0, buf, cur_len);
> + iov_to_buf(elem->out_sg, elem->out_num, 0, buf, cur_len);
>
> handle_control_message(vser, buf, cur_len);
> - virtqueue_push(vq, &elem, 0);
> + virtqueue_push(vq, elem, 0);
> + g_free(elem);
s/^\t/ / ?
- [Qemu-block] [RFC PATCH 00/40] Sneak peek of virtio and dataplane changes for 2.6, Paolo Bonzini, 2015/11/24
- [Qemu-block] [PATCH 02/40] virtio: move VirtQueueElement at the beginning of the structs, Paolo Bonzini, 2015/11/24
- [Qemu-block] [PATCH 01/40] 9pfs: allocate pdus with g_malloc/g_free, Paolo Bonzini, 2015/11/24
- [Qemu-block] [PATCH 03/40] virtio: move allocation to virtqueue_pop/vring_pop, Paolo Bonzini, 2015/11/24
- Re: [Qemu-block] [Qemu-devel] [PATCH 03/40] virtio: move allocation to virtqueue_pop/vring_pop,
Fam Zheng <=
- [Qemu-block] [PATCH 06/40] virtio: introduce virtqueue_alloc_element, Paolo Bonzini, 2015/11/24
- [Qemu-block] [PATCH 04/40] virtio: introduce qemu_get/put_virtqueue_element, Paolo Bonzini, 2015/11/24
- [Qemu-block] [PATCH 07/40] virtio: slim down allocation of VirtQueueElements, Paolo Bonzini, 2015/11/24
- [Qemu-block] [PATCH 09/40] vring: make vring_enable_notification return void, Paolo Bonzini, 2015/11/24
- [Qemu-block] [PATCH 08/40] vring: slim down allocation of VirtQueueElements, Paolo Bonzini, 2015/11/24
- [Qemu-block] [PATCH 05/40] virtio: read/write the VirtQueueElement a field at a time, Paolo Bonzini, 2015/11/24