Re: [PATCH 0/6] hw/[block]: Fix missing accounting

Stefan Hajnoczi <[email protected]>
Newsgroups gmane.comp.emulators.qemu.block,gmane.comp.emulators.qemu
Message-ID <20260730154627.GD1442692@fedora>
On Fri, Jul 24, 2026 at 05:23:09PM +0200, Hanna Czenczek wrote:
> Hi,
> 
> There are some places where block accounting should be happening, but is
> not; either because the whole operation is not accounted (like discard
> operations in virtio-blk) or because certain code paths forget to
> finalize existing cookies.
> 
> 
> Hanna Czenczek (6):
>   hw/virtio-blk: Account discard operations
>   hw/virtio-blk: Complete zone-append cookies
>   hw/nvme: Fix block accounting in nvme_copy()
>   hw/nvme: Fix block accounting for compare
>   hw/ide: Have ide_dma_cb() complete accounting
>   hw/scsi-disk: Fix accounting for IGNORE, ret > 0
> 
>  hw/block/virtio-blk.c | 34 +++++++++++----------
>  hw/ide/core.c         |  3 +-
>  hw/nvme/ctrl.c        | 70 +++++++++++++++++++++++++++----------------
>  hw/scsi/scsi-disk.c   |  7 +++++
>  4 files changed, 72 insertions(+), 42 deletions(-)
> 
> -- 
> 2.55.0
> 

Reviewed-by: Stefan Hajnoczi <[email protected]>
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmprcdMACgkQnKSrs4Gr
c8iZHwf/aEbyrZ2dd61e6DvonITDQJcA5bN+D5dlxwEqOuKpu/f6jPF4XNakXfee
crtLjZRl/qjxsaXNHm10rD0RSflLc7KPdmxMAZiAU+E7rCmJTGjGuc3wGwzq1csx
DFJXi4nNSKIX45Rn0iRGXnQyI5GRawxtckbVZR9kNVSR9vNicIbWIrLNrUNUg7TG
4ZDCm3lJ6QbuzRbfhb3dmuFX1ohphCcM+blGU8h5+tDYLOK2QCq3sj/LnkI73f2H
C36kK2Cu+Pm5Fx0+/u6sttam5CwyWkByScdoJLKHtqiqjol1G+TFzZ2jxY1zI0ai
dxOlFZDAHHIHbqK0b/+nW+2/bxWqEw==
=xqK+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.