]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/block/nvme: replace dma_acct with blk_acct equivalent
authorKlaus Jensen <k.jensen@samsung.com>
Mon, 30 Mar 2020 20:22:38 +0000 (22:22 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Wed, 2 Sep 2020 06:48:50 +0000 (08:48 +0200)
commit904248a53f3506fc41d30c6ef63d3ee7692d76d5
tree3067796f5019e5a7c7bfe6faafea729c5c2b05f5
parenta80b2ce68251cf5b11c450173128f29223045b9c
hw/block/nvme: replace dma_acct with blk_acct equivalent

The QSG isn't always initialized, so accounting could be wrong. Issue a
call to blk_acct_start instead with the size taken from the QSG or IOV
depending on the kind of I/O.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
hw/block/nvme.c