ipmi: provide support for FRUs
commit540c07d3453c1a82dd66608bcb2cde79ea91b192
authorCédric Le Goater <clg@kaod.org>
Wed, 5 Apr 2017 12:41:32 +0000 (5 14:41 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 26 Apr 2017 02:41:21 +0000 (26 12:41 +1000)
tree6bde575a78ff7d2c900b1a25554e19627e90b44d
parent8c6fd7f341fd7e414171e09618b496de871da718
ipmi: provide support for FRUs

This patch provides a simple FRU support for the BMC simulator. FRUs
are loaded from a file which name is specified in the object
properties, each entry having a fixed size, also specified in the
properties. If the file is unknown or not accessible for some reason,
a unique entry of 1024 bytes is created as a default. Just enough to
start some simulation.

These commands complies with the IPMI spec : "34. FRU Inventory Device
Commands".

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Corey Minyard <cminyard@mvista.com>
[dwg: Folded in subsequent fix to handle NULL filename]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ipmi/ipmi_bmc_sim.c
qemu-options.hx