From: "Benoît Canet" <benoit.canet@nodalink.com>
To: qemu-devel@nongnu.org
Cc: "Benoît Canet" <benoit.canet@nodalink.com>
Subject: [Qemu-devel] [PATCH 0/4] Extract block accounting statistic code in it's own module
Date: Fri, 5 Sep 2014 15:46:14 +0200 [thread overview]
Message-ID: <1409924778-29424-1-git-send-email-benoit.canet@nodalink.com> (raw)
With the need to add new statistics it's better to modularize asap the I/O
block accounting code.
This series takes care of extracting this code and making it independant of the
BlockDriverState structure.
Compile tested and basically runtime tested excepted for the xen_disk.c backend.
Best regards
Benoît
Benoît Canet (4):
block: Extract the BlockAcctStats structure
block: Extract the block accounting code
block: rename BlockAcctType members to start with BLOCK_ instead of
BDRV_
block: Make the block accounting functions operate on BlockAcctStats
block.c | 37 ++++++++++-----------------
block/Makefile.objs | 1 +
block/accounting.c | 54 +++++++++++++++++++++++++++++++++++++++
block/qapi.c | 19 +++++++-------
dma-helpers.c | 2 +-
hw/block/nvme.c | 4 +--
hw/block/virtio-blk.c | 15 ++++++-----
hw/block/xen_disk.c | 8 +++---
hw/ide/ahci.c | 7 +++---
hw/ide/atapi.c | 18 +++++++------
hw/ide/core.c | 24 ++++++++++--------
hw/ide/macio.c | 19 ++++++++------
hw/scsi/scsi-disk.c | 45 ++++++++++++++++++++-------------
include/block/accounting.h | 57 ++++++++++++++++++++++++++++++++++++++++++
include/block/block.h | 20 +++------------
include/block/block_int.h | 6 ++---
include/hw/virtio/virtio-blk.h | 1 +
include/sysemu/dma.h | 1 +
18 files changed, 225 insertions(+), 113 deletions(-)
create mode 100644 block/accounting.c
create mode 100644 include/block/accounting.h
--
2.1.0
next reply other threads:[~2014-09-05 13:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-05 13:46 Benoît Canet [this message]
2014-09-05 13:46 ` [Qemu-devel] [PATCH 1/4] block: Extract the BlockAcctStats structure Benoît Canet
2014-09-05 13:46 ` [Qemu-devel] [PATCH 2/4] block: Extract the block accounting code Benoît Canet
2014-09-05 13:46 ` [Qemu-devel] [PATCH 3/4] block: rename BlockAcctType members to start with BLOCK_ instead of BDRV_ Benoît Canet
2014-09-05 13:46 ` [Qemu-devel] [PATCH 4/4] block: Make the block accounting functions operate on BlockAcctStats Benoît Canet
2014-09-09 9:56 ` [Qemu-devel] [PATCH 0/4] Extract block accounting statistic code in it's own module Kevin Wolf
2014-09-09 10:48 ` Benoît Canet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1409924778-29424-1-git-send-email-benoit.canet@nodalink.com \
--to=benoit.canet@nodalink.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).