qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 06/10] vring: slim down allocation of VirtQueueE


From: Cornelia Huck
Subject: Re: [Qemu-devel] [PATCH 06/10] vring: slim down allocation of VirtQueueElements
Date: Tue, 19 Jan 2016 16:58:40 +0100

On Fri, 15 Jan 2016 13:41:54 +0100
Paolo Bonzini <address@hidden> wrote:

> Build the addresses and s/g lists on the stack, and then copy them
> to a VirtQueueElement that is just as big as required to contain this
> particular s/g list.  The cost of the copy is minimal compared to that
> of a large malloc.
> 
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
>  hw/virtio/dataplane/vring.c | 53 
> ++++++++++++++++++++++++++++++---------------
>  1 file changed, 36 insertions(+), 17 deletions(-)

Reviewed-by: Cornelia Huck <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]