Hello, The first patches are cleanups and prepare ground for an extension of the BMC simulator providing a SDR loader using a file. A simple FRU support comes next.
Changes since v1: - Added initial cleanups removing the macros implicitely making use of local variables in the command handlers - Fixed property naming - Kept the API extensions to expose SDR and generate events for later Based on 9c279bec754a and also available here : https://github.com/legoater/qemu/commits/ipmi Thanks, C. Cédric Le Goater (10): ipmi: remove IPMI_CHECK_CMD_LEN() macro ipmi: replace IPMI_ADD_RSP_DATA() macro with inline helpers ipmi: remove IPMI_CHECK_RESERVATION() macro ipmi: add rsp_buffer_set_error() helper ipmi: add a realize function to the device class ipmi: use a function to initialize the SDR table ipmi: remove the need of an ending record in the SDR table ipmi: add some local variables in ipmi_sdr_init ipmi: use a file to load SDRs ipmi: provide support for FRUs hw/ipmi/ipmi_bmc_sim.c | 855 ++++++++++++++++++++++++++++--------------------- qemu-options.hx | 15 +- 2 files changed, 506 insertions(+), 364 deletions(-) -- 2.1.4