On Fri, 15 Jan 2016 13:41:56 +0100
Paolo Bonzini <[email protected]> wrote:

> From: Vincenzo Maffione <[email protected]>
> 
> Accessing used_idx in the VQ requires an expensive access to
> guest physical memory. Before this patch, 3 accesses are normally
> done for each pop/push/notify call. However, since the used_idx is
> only written by us, we can track it in our internal data structure.
> 
> Signed-off-by: Vincenzo Maffione <[email protected]>
> Message-Id: 
> <3d062ec54e9a7bf9fb325c1fd693564951f2b319.1450218353.git.v.maffi...@gmail.com>
> Signed-off-by: Paolo Bonzini <[email protected]>
> ---
>  hw/virtio/virtio.c | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)

Reviewed-by: Cornelia Huck <[email protected]>


Reply via email to