mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
8c6fd7f341
commit
540c07d345
2 changed files with 139 additions and 2 deletions
|
@ -425,7 +425,7 @@ possible drivers and properties, use @code{-device help} and
|
|||
@code{-device @var{driver},help}.
|
||||
|
||||
Some drivers are:
|
||||
@item -device ipmi-bmc-sim,id=@var{id}[,slave_addr=@var{val}][,sdrfile=@var{file}]
|
||||
@item -device ipmi-bmc-sim,id=@var{id}[,slave_addr=@var{val}][,sdrfile=@var{file}][,furareasize=@var{val}][,furdatafile=@var{file}]
|
||||
|
||||
Add an IPMI BMC. This is a simulation of a hardware management
|
||||
interface processor that normally sits on a system. It provides
|
||||
|
@ -443,7 +443,11 @@ The BMC to connect to, one of ipmi-bmc-sim or ipmi-bmc-extern above.
|
|||
@item slave_addr=@var{val}
|
||||
Define slave address to use for the BMC. The default is 0x20.
|
||||
@item sdrfile=@var{file}
|
||||
file containing raw Sensor Data Records (SDR) data. The default is none.
|
||||
file containing raw Sensor Data Records (SDR) data. The default is none.
|
||||
@item fruareasize=@var{val}
|
||||
size of a Field Replaceable Unit (FRU) area. The default is 1024.
|
||||
@item frudatafile=@var{file}
|
||||
file containing raw Field Replaceable Unit (FRU) inventory data. The default is none.
|
||||
@end table
|
||||
|
||||
@item -device ipmi-bmc-extern,id=@var{id},chardev=@var{id}[,slave_addr=@var{val}]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue