]> www.infradead.org Git - qemu-nvme.git/commit
hw/nvme: check maximum copy length (MCL) for COPY nvme-next
authorMinwoo Im <minwoo.im@samsung.com>
Tue, 18 Apr 2023 00:26:22 +0000 (09:26 +0900)
committerKlaus Jensen <k.jensen@samsung.com>
Wed, 24 May 2023 09:21:26 +0000 (11:21 +0200)
commit7ea9d6055d36649dc23b2883509489533fff404c
tree190c141ffa9ce572c21114dc26f42e33fb04cd9f
parent6b9d6cf937c764a3377694a579b3b7259ad13c57
hw/nvme: check maximum copy length (MCL) for COPY

MCL(Maximum Copy Length) in the Identify Namespace data structure limits
the number of LBAs to be copied inside of the controller.  We've not
checked it at all, so added the check with returning the proper error
status.

Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ctrl.c