Re: [Qemu-devel] [RFC PATCH] vring: calculate descriptor address directly

2014-11-28 Thread Peter Lieven
Am 27.11.2014 um 17:49 schrieb Paolo Bonzini: On 27/11/2014 11:15, Peter Lieven wrote: vring_map causes a huge overhead by calling memory_region_find everytime. the vring_map is executed already on vring_setup and there is also the memory region referenced. Signed-off-by: Peter Lieven

[Qemu-devel] [RFC PATCH] vring: calculate descriptor address directly

2014-11-27 Thread Peter Lieven
vring_map causes a huge overhead by calling memory_region_find everytime. the vring_map is executed already on vring_setup and there is also the memory region referenced. Signed-off-by: Peter Lieven p...@kamp.de --- hw/virtio/dataplane/vring.c | 51 +--

Re: [Qemu-devel] [RFC PATCH] vring: calculate descriptor address directly

2014-11-27 Thread Paolo Bonzini
On 27/11/2014 11:15, Peter Lieven wrote: vring_map causes a huge overhead by calling memory_region_find everytime. the vring_map is executed already on vring_setup and there is also the memory region referenced. Signed-off-by: Peter Lieven p...@kamp.de vring_map/unmap is going to