qemu-cr16/hw/nvme
Philippe Mathieu-Daudé bd3ba0d342 hw/nvme: Validate PMR memory size
Per the PCI spec 3.0, in section 6.2.5.1, "Address Maps":

  A 32-bit register can be implemented to support a single
  memory size that is a power of 2 from 16 bytes to 2 GB.

Add a check in nvme_init_pmr(), returning an error if the
PMR region size is too small; and update the QTest.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
2025-11-25 09:21:41 +01:00
..
ctrl.c hw/nvme: Validate PMR memory size 2025-11-25 09:21:41 +01:00
dif.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
dif.h hw/nvme: 64-bit pi support 2022-03-03 09:30:21 +01:00
Kconfig kconfig: Add NVME to s390x machines 2023-09-12 12:07:16 +02:00
meson.build hw/nvme: Add NVMe NGUID property 2024-03-12 15:48:56 +01:00
nguid.c qdev: Rename PropertyInfo member @name to @type 2025-03-06 10:30:58 +01:00
ns.c hw/nvme: fix up extended protection information format 2025-11-25 09:21:38 +01:00
nvme.h hw/nvme: fix namespace atomic parameter setup 2025-11-25 09:21:35 +01:00
subsys.c hw/nvme: fix nvme hotplugging 2025-05-15 12:18:06 +02:00
trace-events hw/nvme: i/o cmd set independent namespace data structure 2024-11-04 19:09:45 +01:00
trace.h