ipmi: Add a local BMC simulation

This provides a minimal local BMC, basically enough to comply with the
spec and provide a complete watchdog timer (including a sensor, SDR,
and event).

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Corey Minyard 2015-12-17 12:50:05 -06:00 committed by Michael S. Tsirkin
parent 23076bb34b
commit 8bfffbccad
4 changed files with 1729 additions and 0 deletions

View File

@ -10,6 +10,7 @@ CONFIG_VMWARE_VGA=y
CONFIG_VIRTIO_VGA=y CONFIG_VIRTIO_VGA=y
CONFIG_VMMOUSE=y CONFIG_VMMOUSE=y
CONFIG_IPMI=y CONFIG_IPMI=y
CONFIG_IPMI_LOCAL=y
CONFIG_SERIAL=y CONFIG_SERIAL=y
CONFIG_PARALLEL=y CONFIG_PARALLEL=y
CONFIG_I8254=y CONFIG_I8254=y

View File

@ -10,6 +10,7 @@ CONFIG_VMWARE_VGA=y
CONFIG_VIRTIO_VGA=y CONFIG_VIRTIO_VGA=y
CONFIG_VMMOUSE=y CONFIG_VMMOUSE=y
CONFIG_IPMI=y CONFIG_IPMI=y
CONFIG_IPMI_LOCAL=y
CONFIG_SERIAL=y CONFIG_SERIAL=y
CONFIG_PARALLEL=y CONFIG_PARALLEL=y
CONFIG_I8254=y CONFIG_I8254=y

View File

@ -1 +1,2 @@
common-obj-$(CONFIG_IPMI) += ipmi.o common-obj-$(CONFIG_IPMI) += ipmi.o
common-obj-$(CONFIG_IPMI_LOCAL) += ipmi_bmc_sim.o

1726
hw/ipmi/ipmi_bmc_sim.c Normal file

File diff suppressed because it is too large Load Diff