1 2 #include "qemu/osdep.h" 3 #include "qapi/error.h" 4 #include "qapi/qapi-commands-cxl.h" 5 6 void qmp_cxl_inject_general_media_event(const char *path, CxlEventLog log, 7 uint8_t flags, uint64_t dpa, 8 uint8_t descriptor, uint8_t type, 9 uint8_t transaction_type, 10 bool has_channel, uint8_t channel, 11 bool has_rank, uint8_t rank, 12 bool has_device, uint32_t device, 13 const char *component_id, 14 Error **errp) {} 15 16 void qmp_cxl_inject_dram_event(const char *path, CxlEventLog log, uint8_t flags, 17 uint64_t dpa, uint8_t descriptor, 18 uint8_t type, uint8_t transaction_type, 19 bool has_channel, uint8_t channel, 20 bool has_rank, uint8_t rank, 21 bool has_nibble_mask, uint32_t nibble_mask, 22 bool has_bank_group, uint8_t bank_group, 23 bool has_bank, uint8_t bank, 24 bool has_row, uint32_t row, 25 bool has_column, uint16_t column, 26 bool has_correction_mask, uint64List *correction_mask, 27 Error **errp) {} 28 29 void qmp_cxl_inject_memory_module_event(const char *path, CxlEventLog log, 30 uint8_t flags, uint8_t type, 31 uint8_t health_status, 32 uint8_t media_status, 33 uint8_t additional_status, 34 uint8_t life_used, 35 int16_t temperature, 36 uint32_t dirty_shutdown_count, 37 uint32_t corrected_volatile_error_count, 38 uint32_t corrected_persistent_error_count, 39 Error **errp) {} 40 41 void qmp_cxl_inject_poison(const char *path, uint64_t start, uint64_t length, 42 Error **errp) 43 { 44 error_setg(errp, "CXL Type 3 support is not compiled in"); 45 } 46 47 void qmp_cxl_inject_uncorrectable_errors(const char *path, 48 CXLUncorErrorRecordList *errors, 49 Error **errp) 50 { 51 error_setg(errp, "CXL Type 3 support is not compiled in"); 52 } 53 54 void qmp_cxl_inject_correctable_error(const char *path, CxlCorErrorType type, 55 Error **errp) 56 { 57 error_setg(errp, "CXL Type 3 support is not compiled in"); 58 } 59