From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK6FX-0000FN-SD for qemu-devel@nongnu.org; Tue, 28 Jul 2015 10:53:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZK6FV-0002Xo-VG for qemu-devel@nongnu.org; Tue, 28 Jul 2015 10:52:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK6FV-0002Xk-QY for qemu-devel@nongnu.org; Tue, 28 Jul 2015 10:52:57 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id F0F31A49FF for ; Tue, 28 Jul 2015 14:52:56 +0000 (UTC) From: Igor Mammedov Date: Tue, 28 Jul 2015 16:52:49 +0200 Message-Id: <1438095173-7417-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH for-2.5 0/4] vhost: cleanups and switching to sorted memory map List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mst@redhat.com making memory map a sorted array helps to simplify and speed up lookup/insertion and deletion ops on it. It also makes insertion/deteletion code easier to read. Igor Mammedov (4): vhost: codding style fix tab indents vhost: simplify/speedify vhost_dev_assign_memory() vhost: switch region lookup from linear to bsearch vhost: simplify/speedify vhost_dev_unassign_memory() hw/virtio/vhost.c | 252 ++++++++++++++++++++++++++---------------------------- 1 file changed, 123 insertions(+), 129 deletions(-) -- 1.8.3.1