qemu-cr16/hw/cxl
Jonathan Cameron ba31a6fca7 hw/cxl: Take into account how many media operations are requested for param check
Whilst the spec doesn't speak to it directly my assumption is that
a request for more operations than exist should result in an invalid
input error return.

Fixes: 77a8e9fe0e ("hw/cxl/cxl-mailbox-utils: Add support for Media operations discovery commands cxl r3.2 (8.2.10.9.5.3)")
Closes: https://lore.kernel.org/qemu-devel/CAFEAcA-p5wZkNxK7wNVq_3PAzEE-muOd1Def-0O-FSpck4DrBQ@mail.gmail.com/
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260102154731.474859-3-Jonathan.Cameron@huawei.com>
(cherry picked from commit 25465c0e1fd74d2118dfec03912f2595eeb497d7)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2026-02-06 01:12:25 +03:00
..
cxl-cdat.c hw/cxl/cxl-cdat: Make cxl_doe_cdat_init() return boolean 2024-04-25 12:48:12 +02:00
cxl-component-utils.c mem/cxl_type3: support 3, 6, 12 and 16 interleave ways 2025-02-21 07:18:42 -05:00
cxl-device-utils.c hw/cxl: Support aborting background commands 2025-05-14 05:39:14 -04:00
cxl-events.c hw/cxl: Create helper function to create DC Event Records from extents 2025-07-15 02:56:40 -04:00
cxl-host-stubs.c hw/cxl: Make the CXL fixed memory windows devices. 2025-07-08 20:27:09 +01:00
cxl-host.c hw/cxl: Convert cxl_fmws_link() to Error 2025-09-30 14:43:53 +02:00
cxl-mailbox-utils.c hw/cxl: Take into account how many media operations are requested for param check 2026-02-06 01:12:25 +03:00
Kconfig
meson.build meson: remove CONFIG_ALL 2023-12-31 09:11:28 +01:00
switch-mailbox-cci.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00