All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Hanna Czenczek <hreitz@redhat.com>
Cc: qemu-block@nongnu.org,  qemu-devel@nongnu.org,
	 Kevin Wolf <kwolf@redhat.com>,  John Snow <jsnow@redhat.com>,
	 "Denis V . Lunev" <den@openvz.org>,
	 Eric Blake <eblake@redhat.com>,
	 Stefan Hajnoczi <stefanha@redhat.com>,
	 Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH v2 02/12] qapi/block: Add IoAccountingOperation enum
Date: Fri, 23 Oct 2026 08:04:28 +0200	[thread overview]
Message-ID: <87v76tgdg3.fsf@pond.sub.org> (raw)
In-Reply-To: <a29d0076-15ad-49d8-b1a4-0991a07bcaa4@redhat.com> (Hanna Czenczek's message of "Thu, 22 Oct 2026 17:48:12 +0200")

Hanna Czenczek <hreitz@redhat.com> writes:

> On 20.10.26 07:59, Markus Armbruster wrote:
>> Hanna Czenczek <hreitz@redhat.com> writes:
>>
>>> This enum gives more information than IoOperationType (which is used for
>>> the rerror/werror distinction) to identify operation types for block
>>> accounting.
>>>
>>> Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
>>> ---
>>>   qapi/block.json | 20 ++++++++++++++++++++
>>>   1 file changed, 20 insertions(+)
>>>
>>> diff --git a/qapi/block.json b/qapi/block.json
>>> index 0a88d405a26..8f4a71733c1 100644
>>> --- a/qapi/block.json
>>> +++ b/qapi/block.json
>>> @@ -629,3 +629,23 @@
>>>               'command': 'str' },
>>>     'features': [ 'unstable' ],
>>>     'allow-preconfig': true }
>>> +
>>> +##
>>> +# @IoAccountingOperation:
>>> +#
>>> +# I/O operation types as they are tracked by block accounting.
>>
>> Can we have a link to suitable docs on block accounting?
>
> Which do you have in mind?

Hey, I asked first!

Two ideas to find candidates:

1. How is IoAccountingOperation going to be used?

   I can see events BLOCK_IO_DELAY and BLOCK_IO_DONE.  Documentation
   there calls it "disk operation" in the event description and "I/O
   operation" in the argument description.  Not a peep about
   "accounting".  Might "tracked by block accounting" be about
   implementation?  Or asked differently: why would the user care about
   block accounting here?

2. Assuming "block accounting" is actually relevant for the user: what
   are the QMP interfaces related to it?

> Also, I’m not sure whether these are suitable, because they are the operation types used by block accounting, but for now, accounting cookies (block/accounting.c) use their own non-QAPI enum (enum BlockAcctType).

[...]



  reply	other threads:[~2026-10-23  6:05 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19 18:20 [PATCH v2 00/12] block: BLOCK_IO_DELAY event Hanna Czenczek
2026-10-19 18:20 ` [PATCH v2 01/12] qapi/common: Clarify what IoOperationType is for Hanna Czenczek
2026-10-20  5:58   ` Markus Armbruster
2026-10-22 13:54     ` Hanna Czenczek
2026-10-19 18:20 ` [PATCH v2 02/12] qapi/block: Add IoAccountingOperation enum Hanna Czenczek
2026-10-20  5:59   ` Markus Armbruster
2026-10-22 15:48     ` Hanna Czenczek
2026-10-23  6:04       ` Markus Armbruster [this message]
2026-10-23 14:30         ` Hanna Czenczek
2026-10-26  6:24           ` Markus Armbruster
2026-10-19 18:20 ` [PATCH v2 03/12] runstate: Allow IO_ERROR/SUSPENDED transitions Hanna Czenczek
2026-10-19 18:20 ` [PATCH v2 04/12] iotests: PC-only test for I/O errors during suspend Hanna Czenczek
2026-10-19 18:20 ` [PATCH v2 05/12] qapi/run-state: Add io-hang state Hanna Czenczek
2026-10-20  6:02   ` Markus Armbruster
2026-10-19 18:20 ` [PATCH v2 06/12] qapi/block: Add BLOCK_IO_DELAY event Hanna Czenczek
2026-10-20  6:49   ` Markus Armbruster
2026-10-22 15:55     ` Hanna Czenczek
2026-10-23  6:14       ` Markus Armbruster
2026-10-23 14:33         ` Hanna Czenczek
2026-10-26  6:28           ` Markus Armbruster
2026-10-19 18:20 ` [PATCH v2 07/12] qapi/block: Add BLOCK_IO_DONE event Hanna Czenczek
2026-10-20  6:55   ` Markus Armbruster
2026-10-22 15:59     ` Hanna Czenczek
2026-10-23  6:18       ` Markus Armbruster
2026-10-23 14:38         ` Hanna Czenczek
2026-10-26  6:40           ` Markus Armbruster
2026-10-19 18:20 ` [PATCH v2 08/12] block-backend: Public blk_get_attached_dev_path() Hanna Czenczek
2026-10-19 18:20 ` [PATCH v2 09/12] host-utils: Add u{add,sub}{32,64}_saturate() Hanna Czenczek
2026-10-19 18:20 ` [PATCH v2 10/12] block: Per-request delay tracker Hanna Czenczek
2026-10-19 18:20 ` [PATCH v2 11/12] block: Add delay-report-ns and delay-stop-ns props Hanna Czenczek
2026-10-19 18:20 ` [PATCH v2 12/12] iotests: Add io-delay-reporting test Hanna Czenczek

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=87v76tgdg3.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=den@openvz.org \
    --cc=eblake@redhat.com \
    --cc=hreitz@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.