Hello Corey Minyard, I hope this email finds you well.
I'm currently adding LAN-configs-retrieval support to the QEMU ipmi-bmc-sim device. And I hope to merge the modifications upstream after it's finished. Could you please check the attached patch file of the draft code and share your opinions and advice? In my work, we need to run tools like "ipmitool lan print" on a VM for testing purposes. However, QEMU internal BMC simulator device (`ipmi-bmc-sim`) does not support retrieving LAN configs from it. I have to implement two IPMI commands so that the device can now work with ipmitool. The LAN config values are faked, but for testing purposes this is not a problem. I believe other people may also have the same need, so it's worth getting merged upstream. The fake BMC LAN config values are currently hard coded into the code. My plan is to add a parameter to the device, which is a file containing user designated values. The device then reads the file and returns those values as LAN configs. This is similar to sdrfile for sensor data and frudatafile for FRU data. Looking forward to hearing your thoughts. Have a nice weekend. Kind regards, Yunpeng Yang
0001-hw-ipmi-ipmi_bmc_sim.c-generating-fake-LAN-channel-i.patch
Description: 0001-hw-ipmi-ipmi_bmc_sim.c-generating-fake-LAN-channel-i.patch