Re: [Qemu-devel] [PATCH 01/40] 9pfs: allocate pdus with g_malloc/g_free

2015-11-30 Thread Greg Kurz
On Tue, 24 Nov 2015 19:00:52 +0100 Paolo Bonzini wrote: > Prepare for moving the allocation to virtqueue_pop. > > Signed-off-by: Paolo Bonzini > --- And aside from this series goal, it makes the code nicer :) > hw/9pfs/virtio-9p-device.c | 7 +-- > hw/9pfs/virtio-9p.c| 10 +++---

Re: [Qemu-devel] [PATCH 01/40] 9pfs: allocate pdus with g_malloc/g_free

2015-11-29 Thread Fam Zheng
On Mon, 11/30 10:27, Fam Zheng wrote: > On Tue, 11/24 19:00, Paolo Bonzini wrote: > OK, and I think handle_9p_output no longer needs to check the returned > pointer. Yes it's removed in patch 3, good. Fam

Re: [Qemu-devel] [PATCH 01/40] 9pfs: allocate pdus with g_malloc/g_free

2015-11-29 Thread Fam Zheng
On Tue, 11/24 19:00, Paolo Bonzini wrote: > Prepare for moving the allocation to virtqueue_pop. > > Signed-off-by: Paolo Bonzini > --- > hw/9pfs/virtio-9p-device.c | 7 +-- > hw/9pfs/virtio-9p.c| 10 +++--- > hw/9pfs/virtio-9p.h| 2 -- > 3 files changed, 4 insertions(+)

[Qemu-devel] [PATCH 01/40] 9pfs: allocate pdus with g_malloc/g_free

2015-11-24 Thread Paolo Bonzini
Prepare for moving the allocation to virtqueue_pop. Signed-off-by: Paolo Bonzini --- hw/9pfs/virtio-9p-device.c | 7 +-- hw/9pfs/virtio-9p.c| 10 +++--- hw/9pfs/virtio-9p.h| 2 -- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/hw/9pfs/virtio-9p-device.c