]> git.proxmox.com Git - mirror_qemu.git/commit
hw/nvme: error handling for too many mappings
authorPadmakar Kalghatgi <p.kalghatgi@samsung.com>
Fri, 9 Jul 2021 05:58:40 +0000 (07:58 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Mon, 26 Jul 2021 19:09:38 +0000 (21:09 +0200)
commit234214734f7347b1bc3ceeb8f4a2ef53195a8242
treeb524fdf83e598eedd48afb22a281e83ff99b7b85
parentb0fde9e86133f66c054b31722fa29640f57e975c
hw/nvme: error handling for too many mappings

If the number of PRP/SGL mappings exceed 1024, reads and writes will
fail because of an internal QEMU limitation of max 1024 vectors.

Signed-off-by: Padmakar Kalghatgi <p.kalghatgi@samsung.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
[k.jensen: changed the error message to be more generic]
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ctrl.c
hw/nvme/trace-events