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

Hanna Czenczek posted 6 patches 1 day, 18 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260724152315.234183-1-hreitz@redhat.com
Maintainers: Stefan Hajnoczi <stefanha@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, John Snow <jsnow@redhat.com>, Keith Busch <kbusch@kernel.org>, Klaus Jensen <its@irrelevant.dk>, Jesper Devantier <foss@defmacro.it>, Paolo Bonzini <pbonzini@redhat.com>, Fam Zheng <fam@euphon.net>
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(-)
[PATCH 0/6] hw/[block]: Fix missing accounting
Posted by Hanna Czenczek 1 day, 18 hours ago
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