On Sun, Aug 3, 2025 at 6:16 AM Yunpeng Yang <yunpeng.y...@nutanix.com>
wrote:

> Hello Corey Minyard,
>
> I hope you are all well.
>
> Could I ask for your opinion on whether it is worthing implementing a fake
> LAN config for device ipmi-bmc-sim ? (Details are in my last email, which
> is also included below).
>
> During my work over last month, I found that QEMU already has
> ipmi-bmc-extern which supports comprehensive BMC simulation, including
> LAN config faking. But ipmi-bmc-sim is more light-weight and easier to
> set up. So I think it still has some value in implementing LAN config for
> ipmi-bmc-sim . Could you please share your views?
>
>
Well, there is no LAN interface, so I didn't see any need to add that.  The
values would not be permanent.  But it would be harmless to add, so I'd be
ok with a patch to do this.

The external interface with ipmisim from the OpenIPMI library provides a
pretty comprehensive solution.

-corey


> Best regards,
> Yunpeng Yang
>
>
> ------------------------------
> *From:* Yunpeng Yang <yunpeng.y...@nutanix.com>
> *Sent:* Friday, June 27, 2025 18:13
> *To:* miny...@acm.org <miny...@acm.org>
> *Cc:* qemu-devel@nongnu.org <qemu-devel@nongnu.org>; Mark Cave-Ayland <
> mark.caveayl...@nutanix.com>; Jonathan Davies <j...@nutanix.com>
> *Subject:* Add support for retrieving fake LAN config from `ipmi-bmc-sim`
> device
>
> 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
>

Reply via email to