From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ml09o-0001uz-5f for qemu-devel@nongnu.org; Tue, 08 Sep 2009 08:50:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ml09j-0001qe-4N for qemu-devel@nongnu.org; Tue, 08 Sep 2009 08:50:47 -0400 Received: from [199.232.76.173] (port=46220 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ml09j-0001qY-2I for qemu-devel@nongnu.org; Tue, 08 Sep 2009 08:50:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63153) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ml09i-0003Jz-Fx for qemu-devel@nongnu.org; Tue, 08 Sep 2009 08:50:42 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n88Cocjx028618 for ; Tue, 8 Sep 2009 08:50:38 -0400 From: Kevin Wolf Date: Tue, 8 Sep 2009 14:49:30 +0200 Message-Id: <1252414172-25721-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH v2 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. Kevin Wolf (2): Add bdrv_aio_multiwrite virtio-blk: Use bdrv_aio_multiwrite block.c | 147 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ block.h | 15 ++++++ block_int.h | 3 + cutils.c | 17 ++++++ hw/virtio-blk.c | 50 ++++++++++++++++--- qemu-common.h | 1 + 6 files changed, 225 insertions(+), 8 deletions(-)