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.
The last patches introduce APIs to populate a guest device tree with the available sensors and to generate events, which is needed by platforms in some occasions. Based on e4a096b1cd43 and also available here : https://github.com/legoater/qemu/commits/ipmi Thanks, C. Cédric Le Goater (8): 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 ipmi: introduce an ipmi_bmc_sdr_find() API ipmi: introduce an ipmi_bmc_gen_event() API hw/ipmi/ipmi_bmc_sim.c | 256 +++++++++++++++++++++++++++++++++++++++++++------ include/hw/ipmi/ipmi.h | 4 + 2 files changed, 233 insertions(+), 27 deletions(-) -- 2.1.4