On Fri, 15 Jan 2016 13:41:56 +0100 Paolo Bonzini <pbonz...@redhat.com> wrote:
> From: Vincenzo Maffione <v.maffi...@gmail.com> > > 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 <v.maffi...@gmail.com> > Message-Id: > <3d062ec54e9a7bf9fb325c1fd693564951f2b319.1450218353.git.v.maffi...@gmail.com> > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > hw/virtio/virtio.c | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) Reviewed-by: Cornelia Huck <cornelia.h...@de.ibm.com>