Received: from eggs.gnu.org ([2001:4830:134:3::10]:57512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvoXU-0004X7-Fa for qemu-devel@nongnu.org; Tue, 02 Dec 2014 09:35:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvoXL-0001xe-EJ for qemu-devel@nongnu.org; Tue, 02 Dec 2014 09:34:52 -0500 Received: from mx-v6.kamp.de ([2a02:248:0:51::16]:33058 helo=mx01.kamp.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvoXL-0001x6-4X for qemu-devel@nongnu.org; Tue, 02 Dec 2014 09:34:43 -0500 From: Peter Lieven Date: Tue, 2 Dec 2014 15:33:05 +0100 Message-Id: <1417530788-15172-1-git-send-email-pl@kamp.de> Subject: [Qemu-devel] [RFC PATCH 0/3] virtio-blk: add multiread support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, famz@redhat.com, benoit@irqsave.net, ming.lei@canonical.com, Peter Lieven , armbru@redhat.com, mreitz@redhat.com, stefanha@redhat.com, pbonzini@redhat.com this series adds the long missing multiread support to virtio-blk. some remarks: - i introduced rd_merged and wr_merged block accounting stats to blockstats as a generic interface which can be set from any driver that will introduce multirequst merging in the future. - the knob to disable request merging is not yet there. I would add it to the device properties also as a generic interface to have the same switch on for any driver that might introduce request merging in the future - there is cleanup and iotest adjustion missing. Peter Lieven (3): block: add accounting for merged requests hw/virtio-blk: add a constant for max number of merged requests virtio-blk: introduce multiread block.c | 2 + block/accounting.c | 7 ++ block/qapi.c | 2 + hmp.c | 6 +- hw/block/dataplane/virtio-blk.c | 10 +- hw/block/virtio-blk.c | 222 ++++++++++++++++++++++++--------------- include/block/accounting.h | 3 + include/hw/virtio/virtio-blk.h | 21 ++-- qapi/block-core.json | 10 +- 9 files changed, 184 insertions(+), 99 deletions(-) -- 1.7.9.5