You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/nvme
Keith Busch 53493c1f83 hw/nvme: cap MDTS value for internal limitation
The emulated device had let the user set whatever max transfers size
they wanted, including no limit. However the device does have an
internal limit of 1024 segments. NVMe doesn't report max segments,
though. This is implicitly inferred based on the MDTS and MPSMIN values.

IOV_MAX is currently 1024 which 4k PRPs can exceed with 2MB transfers.
Don't allow MDTS values that can exceed this, otherwise users risk
seeing "internal error" status to their otherwise protocol compliant
commands.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
4 weeks ago
..
Kconfig kconfig: Add NVME to s390x machines 2 years ago
ctrl.c hw/nvme: cap MDTS value for internal limitation 4 weeks ago
dif.c include: Rename sysemu/ -> system/ 9 months ago
dif.h hw/nvme: 64-bit pi support 4 years ago
meson.build hw/nvme: Add NVMe NGUID property 2 years ago
nguid.c qdev: Rename PropertyInfo member @name to @type 6 months ago
ns.c qom: Have class_init() take a const data argument 5 months ago
nvme.h hw/nvme: fix attachment of private namespaces 5 months ago
subsys.c hw/nvme: fix nvme hotplugging 4 months ago
trace-events hw/nvme: i/o cmd set independent namespace data structure 10 months ago
trace.h