qemu/hw/nvme
Klaus Jensen 51434084f7 hw/nvme: fix missing cq eventidx update
Prior to reading the shadow doorbell cq head, we have to update the
eventidx. Otherwise, we risk that the driver will skip an mmio doorbell
write. This happens on riscv64, as reported by Guenter.

Adding the missing update to the cq eventidx fixes the issue.

Fixes: 3f7fe8de3d ("hw/nvme: Implement shadow doorbell buffer support")
Cc: qemu-stable@nongnu.org
Cc: qemu-riscv@nongnu.org
Reported-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
(cherry picked from commit fa5db2aa16)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-10-30 09:28:53 +08:00
..
Kconfig New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
ctrl.c hw/nvme: fix missing cq eventidx update 2023-10-30 09:28:53 +08:00
dif.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
dif.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
meson.build New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
ns.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
nvme.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
subsys.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
trace-events New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
trace.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00