From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlPVU-0006ai-2w for qemu-devel@nongnu.org; Wed, 09 Sep 2009 11:54:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlPVP-0006WA-9l for qemu-devel@nongnu.org; Wed, 09 Sep 2009 11:54:51 -0400 Received: from [199.232.76.173] (port=40683 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlPVP-0006Vx-3y for qemu-devel@nongnu.org; Wed, 09 Sep 2009 11:54:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7333) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlPVO-0001JZ-FJ for qemu-devel@nongnu.org; Wed, 09 Sep 2009 11:54:46 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n89FsjRa024225 for ; Wed, 9 Sep 2009 11:54:45 -0400 From: Kevin Wolf Date: Wed, 9 Sep 2009 17:53:36 +0200 Message-Id: <1252511618-19497-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/2] block: Handle multiple write requests at once List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf virtio often issues multiple requests in a row, but each one independently. If the block drivers knew all of the requests, they could optimize the way they handle the requests. See the description of patch 1 for how qcow2 can use this to avoid unnecessary writes to the disk. v2: The simple request merging code isn't qcow2 specific at all. Enable it for all formats. A cleverer merging policy can later still be implemented in a driver specific way. v3: Handle overlapping requests, add hook for block drivers to merge even more requests. Kevin Wolf (2): Add bdrv_aio_multiwrite virtio-blk: Use bdrv_aio_multiwrite block.c | 183 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ block.h | 15 +++++ block_int.h | 6 ++ cutils.c | 25 ++++++++ hw/virtio-blk.c | 50 +++++++++++++--- qemu-common.h | 1 + 6 files changed, 272 insertions(+), 8 deletions(-)