2 * CXL Type 3 (memory expander) device QMP stubs
4 * Copyright(C) 2020 Intel Corporation.
6 * This work is licensed under the terms of the GNU GPL, version 2. See the
7 * COPYING file in the top-level directory.
9 * SPDX-License-Identifier: GPL-v2-only
12 #include "qemu/osdep.h"
13 #include "qapi/error.h"
14 #include "qapi/qapi-commands-cxl.h"
16 void qmp_cxl_inject_general_media_event(const char *path
, CxlEventLog log
,
17 uint8_t flags
, uint64_t dpa
,
18 uint8_t descriptor
, uint8_t type
,
19 uint8_t transaction_type
,
20 bool has_channel
, uint8_t channel
,
21 bool has_rank
, uint8_t rank
,
22 bool has_device
, uint32_t device
,
23 const char *component_id
,
26 void qmp_cxl_inject_dram_event(const char *path
, CxlEventLog log
, uint8_t flags
,
27 uint64_t dpa
, uint8_t descriptor
,
28 uint8_t type
, uint8_t transaction_type
,
29 bool has_channel
, uint8_t channel
,
30 bool has_rank
, uint8_t rank
,
31 bool has_nibble_mask
, uint32_t nibble_mask
,
32 bool has_bank_group
, uint8_t bank_group
,
33 bool has_bank
, uint8_t bank
,
34 bool has_row
, uint32_t row
,
35 bool has_column
, uint16_t column
,
36 bool has_correction_mask
,
37 uint64List
*correction_mask
,
40 void qmp_cxl_inject_memory_module_event(const char *path
, CxlEventLog log
,
41 uint8_t flags
, uint8_t type
,
42 uint8_t health_status
,
44 uint8_t additional_status
,
47 uint32_t dirty_shutdown_count
,
48 uint32_t corrected_volatile_error_count
,
49 uint32_t corrected_persist_error_count
,
52 void qmp_cxl_inject_poison(const char *path
, uint64_t start
, uint64_t length
,
55 error_setg(errp
, "CXL Type 3 support is not compiled in");
58 void qmp_cxl_inject_uncorrectable_errors(const char *path
,
59 CXLUncorErrorRecordList
*errors
,
62 error_setg(errp
, "CXL Type 3 support is not compiled in");
65 void qmp_cxl_inject_correctable_error(const char *path
, CxlCorErrorType type
,
68 error_setg(errp
, "CXL Type 3 support is not compiled in");