Files
Philippe Mathieu-DaudéandKlaus Jensen 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
..
2025-11-25 09:21:41 +01:00
2024-12-20 17:44:56 +01:00
2022-03-03 09:30:21 +01:00
2023-09-12 12:07:16 +02:00
2024-03-12 15:48:56 +01:00
2025-05-15 12:18:06 +02:00