]> git.proxmox.com Git - mirror_qemu.git/commit
ipmi: use a file to load SDRs
authorCédric Le Goater <clg@kaod.org>
Wed, 5 Apr 2017 12:41:31 +0000 (14:41 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 26 Apr 2017 02:00:42 +0000 (12:00 +1000)
commit8c6fd7f341fd7e414171e09618b496de871da718
tree157a099cadf7c2375a6247217bf389b42f4ea7e4
parent4a44fd26dbc4e4f78621a71f52dc7952c9e6485d
ipmi: use a file to load SDRs

The IPMI BMC simulator populates the sdr/sensor tables with a minimal
set of entries (Watchdog). But some qemu platforms might want to use
extra entries for their custom needs.

This patch modifies slighty the initializing routine to take into
account a larger set read from a file. The name of the file to use is
defined through a new 'sdr' property of the simulator device.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ipmi/ipmi_bmc_sim.c
qemu-options.hx