qemu/hw/cxl
Ira Weiny c62926f730 cxl/cdat: Handle cdat table build errors
The callback for building CDAT tables may return negative error codes.
This was previously unhandled and will result in potentially huge
allocations later on in ct3_build_cdat()

Detect the negative error code and defer cdat building.

Fixes: f5ee7413d5 ("hw/mem/cxl-type3: Add CXL CDAT Data Object Exchange")
Cc: Huai-Cheng Kuo <hchkuo@avery-design.com.tw>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20240126120132.24248-2-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2024-02-14 06:09:32 -05:00
..
cxl-cdat.c cxl/cdat: Handle cdat table build errors 2024-02-14 06:09:32 -05:00
cxl-component-utils.c hw/cxl: spelling fixes: limitaions, potentialy, intialized 2023-11-15 11:09:17 +03:00
cxl-device-utils.c hw/cxl/mbox: Wire up interrupts for background completion 2023-11-07 03:39:11 -05:00
cxl-events.c cxl: Clean up includes 2024-01-30 21:20:20 +03:00
cxl-host-stubs.c pci/pci_expander_bridge: For CXL HB delay the HB register memory region setup. 2022-06-09 19:32:49 -04:00
cxl-host.c hw/cxl: Support 4 HDM decoders at all levels of topology 2023-10-04 18:15:06 -04:00
cxl-mailbox-utils.c hw/cxl: spelling fixes: limitaions, potentialy, intialized 2023-11-15 11:09:17 +03:00
Kconfig hw/cxl/component: Introduce CXL components (8.1.x, 8.2.5) 2022-05-13 06:13:35 -04:00
meson.build meson: remove CONFIG_ALL 2023-12-31 09:11:28 +01:00
switch-mailbox-cci.c hw/cxl: Add a switch mailbox CCI function 2023-11-07 03:39:11 -05:00