qemu/hw/nvme
Klaus Jensen 6a33f2e920 hw/nvme: fix compliance issue wrt. iosqes/iocqes
As of prior to this patch, the controller checks the value of CC.IOCQES
and CC.IOSQES prior to enabling the controller. As reported by Ben in
GitLab issue #1691, this is not spec compliant. The controller should
only check these values when queues are created.

This patch moves these checks to nvme_create_cq(). We do not need to
check it in nvme_create_sq() since that will error out if the completion
queue is not already created.

Also, since the controller exclusively supports SQEs of size 64 bytes
and CQEs of size 16 bytes, hard code that.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1691
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
2023-08-07 12:27:24 +02:00
..
ctrl.c hw/nvme: fix compliance issue wrt. iosqes/iocqes 2023-08-07 12:27:24 +02:00
dif.c hw/nvme: add new command abort case 2022-06-03 21:48:24 +02:00
dif.h hw/nvme: 64-bit pi support 2022-03-03 09:30:21 +01:00
Kconfig hw/nvme: move nvme emulation out of hw/block 2021-05-17 09:19:00 +02:00
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
ns.c hw/nvme: add placement handle list ranges 2023-06-28 11:22:46 +02:00
nvme.h hw/nvme: fix compliance issue wrt. iosqes/iocqes 2023-08-07 12:27:24 +02:00
subsys.c hw/nvme: fix verification of number of ruhis 2023-06-28 11:22:17 +02:00
trace-events hw/nvme: fix compliance issue wrt. iosqes/iocqes 2023-08-07 12:27:24 +02:00
trace.h hw/nvme: move nvme emulation out of hw/block 2021-05-17 09:19:00 +02:00