]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: enable stats-intervals for storage devices
authorChandan Somani <csomani@redhat.com>
Fri, 3 Oct 2025 21:59:26 +0000 (14:59 -0700)
committerKevin Wolf <kwolf@redhat.com>
Wed, 29 Oct 2025 11:10:09 +0000 (12:10 +0100)
commit9f0c763e16c65d3aab5f3f17768df58321874685
tree27e70a994523a2ef3682b7edf52de3adb2771628
parent3ab02c857047c16e622a7ad2adb51ef21e24989e
block: enable stats-intervals for storage devices

This patch allows stats-intervals to be used for storage
devices with the -device option. It accepts a list of interval
lengths in JSON format.

It configures and collects the stats in the BlockBackend layer
through the storage device that consumes the BlockBackend.

Signed-off-by: Chandan Somani <csomani@redhat.com>
Message-ID: <20251003220039.1336663-1-csomani@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/accounting.c
blockdev.c
hw/block/block.c
include/block/accounting.h
include/hw/block/block.h
tests/qemu-iotests/172.out