From: Anthony Liguori <aliguori@us.ibm.com>
To: Beth Kon <eak@us.ibm.com>
Cc: qemu-devel@nongnu.org, alex.williamson@hp.com
Subject: Re: [Qemu-devel] [PATCH] Add/Fix command-line checks for smbios options v2
Date: Tue, 16 Jun 2009 15:43:55 -0500 [thread overview]
Message-ID: <4A38040B.5090109@us.ibm.com> (raw)
In-Reply-To: <1243594098-6772-1-git-send-email-eak@us.ibm.com>
Beth Kon wrote:
> (Resending with "v2" in subject line)
> - One type 4 table is required per cpu. Add a check for this.
> - Fix check for smbios file.
>
> Changes from v1:
> - static designation of smbios_validate_table, and remove whitespace
>
> Signed-off-by: Beth Kon <eak@us.ibm.com>
> --
>
> diff --git a/hw/smbios.c b/hw/smbios.c
> index ced90ce..57d2c2d 100644
> --- a/hw/smbios.c
> +++ b/hw/smbios.c
> @@ -40,9 +40,19 @@ struct smbios_table {
>
> static uint8_t *smbios_entries;
> static size_t smbios_entries_len;
> +static int smbios_type4_count = 0;
> +
> +static void smbios_validate_table(void) {
> + if (smbios_type4_count && smbios_type4_count != smp_cpus) {
> + fprintf(stderr,
> + "Number of SMBIOS Type 4 tables must match cpu count.\n");
> + exit(1);
> + }
> +}
>
>
Please format according to CodingStyle.
--
Regards,
Anthony Liguori
prev parent reply other threads:[~2009-06-16 20:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-29 10:48 [Qemu-devel] [PATCH] Add/Fix command-line checks for smbios options v2 Beth Kon
2009-06-16 20:43 ` Anthony Liguori [this message]
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=4A38040B.5090109@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=alex.williamson@hp.com \
--cc=eak@us.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).