From: Corey Minyard <cminyard@mvista.com>
To: "Cédric Le Goater" <clg@fr.ibm.com>
Cc: Greg Kurz <gkurz@linux.vnet.ibm.com>,
qemu-devel@nongnu.org, "Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 0/8] ipmi: a couple of enhancements to the BMC simulator (round 2)
Date: Wed, 10 Feb 2016 10:06:39 -0600 [thread overview]
Message-ID: <56BB600F.4030209@mvista.com> (raw)
In-Reply-To: <56BB4390.5040107@fr.ibm.com>
On 02/10/2016 08:05 AM, Cédric Le Goater wrote:
> Hello Corey,
>
> On 02/09/2016 07:25 PM, Corey Minyard wrote:
>> On 02/09/2016 06:13 AM, Cédric Le Goater wrote:
>>> The first patches are cleanups and prepare ground for an extension of
>>> the BMC simulator providing a SDR loader using a file. A simple FRU
>>> support comes next.
>>>
>>> The last patches introduce APIs to populate a guest device tree with
>>> the available sensors and to generate events, which is needed by
>>> platforms in some occasions.
>>>
>> I have reviewed all of these, and they look good. I only have one
>> comment: The naming of the properties probably needs to be
>> fixed.
>>
>> "sdr" should be "sdrfile" to be consistent with everything else.
> yes. I agree. I am glad you took a look.
>
>> Technically, a "FRU" is a piece of hardware that can be replaced
>> in the field, "FRU data" is the data describing that FRU, and a "FRU
>> area" is the memory used to store FRU data. I know this is mixed
>> up a lot (and I have done so) but some people are picky about this.
>>
>> With the renaming of sdr (fru is your option):
> I will rename the "sdr" property to "sdrfile".
>
> As for FRU, you would rather have the code use FruData than Fru ?
> Something like:
>
> typedef struct IPMIFruData {
> char *filename;
> unsigned int nentries;
> uint16_t size;
> uint8_t *area;
> } IPMIFruData;
>
> The code using the IPMIFruData structure would look like :
>
> uint8_t *fru_area;
>
> ...
> fru_area = &ibs->frudata.area[fruid * ibs->frudata.size];
> ...
>
> Changing all the names is not a problem. Let's get them right.
>
> And, so, the properties would become :
>
> DEFINE_PROP_UINT16("frudatasize", IPMIBmcSim, frudata.size, 1024),
I would name this "fruareasize" to be clear that it is not the size of
the "frudatafile".
Other than that, I'm happy with those names.
-corey
> DEFINE_PROP_STRING("frudatafile", IPMIBmcSim, frudata.filename),
> DEFINE_PROP_STRING("sdrfile", IPMIBmcSim, sdr_filename),
>
>> Acked-by: Corey Minyard <cminyard@mvista.com>
>>
>> for all patches.
>>
>> Oh, and I assume you need to add documentation for the
>> properties to qemu-options.hx.
> Yes. Forgot that.
>
> Thanks,
>
> C.
>
>> -corey
>>
>>> Based on e4a096b1cd43 and also available here :
>>>
>>> https://github.com/legoater/qemu/commits/ipmi
>>>
>>> Thanks,
>>>
>>> C.
>>>
>>> Cédric Le Goater (8):
>>> ipmi: add a realize function to the device class
>>> ipmi: use a function to initialize the SDR table
>>> ipmi: remove the need of an ending record in the SDR table
>>> ipmi: add some local variables in ipmi_sdr_init
>>> ipmi: use a file to load SDRs
>>> ipmi: provide support for FRUs
>>> ipmi: introduce an ipmi_bmc_sdr_find() API
>>> ipmi: introduce an ipmi_bmc_gen_event() API
>>>
>>> hw/ipmi/ipmi_bmc_sim.c | 256 +++++++++++++++++++++++++++++++++++++++++++------
>>> include/hw/ipmi/ipmi.h | 4 +
>>> 2 files changed, 233 insertions(+), 27 deletions(-)
>>>
next prev parent reply other threads:[~2016-02-10 16:06 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 12:13 [Qemu-devel] [PATCH 0/8] ipmi: a couple of enhancements to the BMC simulator (round 2) Cédric Le Goater
2016-02-09 12:13 ` [Qemu-devel] [PATCH 1/8] ipmi: add a realize function to the device class Cédric Le Goater
2016-02-14 8:22 ` Marcel Apfelbaum
2016-02-09 12:13 ` [Qemu-devel] [PATCH 2/8] ipmi: use a function to initialize the SDR table Cédric Le Goater
2016-02-14 8:31 ` Marcel Apfelbaum
2016-02-15 16:52 ` Cédric Le Goater
2016-02-09 12:13 ` [Qemu-devel] [PATCH 3/8] ipmi: remove the need of an ending record in " Cédric Le Goater
2016-02-14 8:39 ` Marcel Apfelbaum
2016-02-09 12:13 ` [Qemu-devel] [PATCH 4/8] ipmi: add some local variables in ipmi_sdr_init Cédric Le Goater
2016-02-14 8:55 ` Marcel Apfelbaum
2016-02-15 16:54 ` Cédric Le Goater
2016-02-09 12:13 ` [Qemu-devel] [PATCH 5/8] ipmi: use a file to load SDRs Cédric Le Goater
2016-02-14 9:08 ` Marcel Apfelbaum
2016-02-15 17:02 ` Cédric Le Goater
2016-02-09 12:13 ` [Qemu-devel] [PATCH 6/8] ipmi: provide support for FRUs Cédric Le Goater
2016-02-14 9:25 ` Marcel Apfelbaum
2016-02-15 17:17 ` Cédric Le Goater
2016-02-15 18:40 ` Marcel Apfelbaum
2016-02-16 3:38 ` Corey Minyard
2016-02-16 8:47 ` Cédric Le Goater
2016-02-09 12:13 ` [Qemu-devel] [PATCH 7/8] ipmi: introduce an ipmi_bmc_sdr_find() API Cédric Le Goater
2016-02-14 9:30 ` Marcel Apfelbaum
2016-02-15 17:21 ` Cédric Le Goater
2016-02-09 12:13 ` [Qemu-devel] [PATCH 8/8] ipmi: introduce an ipmi_bmc_gen_event() API Cédric Le Goater
2016-02-14 9:32 ` Marcel Apfelbaum
2016-02-09 18:25 ` [Qemu-devel] [PATCH 0/8] ipmi: a couple of enhancements to the BMC simulator (round 2) Corey Minyard
2016-02-10 14:05 ` Cédric Le Goater
2016-02-10 16:06 ` Corey Minyard [this message]
2016-02-10 16:13 ` Cédric Le Goater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56BB600F.4030209@mvista.com \
--to=cminyard@mvista.com \
--cc=clg@fr.ibm.com \
--cc=gkurz@linux.vnet.ibm.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.