From: Gerd Hoffmann <kraxel@redhat.com>
To: "Gabriel L. Somlo" <gsomlo@gmail.com>
Cc: kevin@koconnor.net, seabios@seabios.org, lersek@redhat.com,
qemu-devel@nongnu.org, agraf@suse.de
Subject: Re: [Qemu-devel] [PATCH 2/2 (RFC)] QEMU: SMBIOS: Build full smbios tables
Date: Wed, 05 Mar 2014 11:59:44 +0100 [thread overview]
Message-ID: <1394017184.17561.47.camel@nilsson.home.kraxel.org> (raw)
In-Reply-To: <20140304192005.GS17184@ERROL.INI.CMU.EDU>
On Di, 2014-03-04 at 14:20 -0500, Gabriel L. Somlo wrote:
> - deprecate passing individual smbios fields (SMBIOS_FIELD_ENTRY)
> - added functionality to build full tables instead, and pass them
> to the bios via fw_cfg as SMBIOS_TABLE_ENTRY blobs
> - added code to optionally build type 2 smbios table expected by OS X
Great.
> Kevin and Gerd: I'd like to get your acked-by for this patch (or any
> future revision): you're the two people who've been editing src/fw/smbios.c
> in SeaBIOS, and while I didn't directly cut'n'paste anything from there,
> I did in fact stare at it very intently, and I'd like to get your OK with
> the lgplv3 -> gplv2+ difference in licensing between SeaBIOS and,
> respectively, QEMU.
Fine with me.
> -static bool smbios_type1_defaults = true;
> +static bool smbios_defaults = true;
> /* Make sure that guest addresses aligned at 1Gbyte boundaries get mapped to
> * host addresses aligned at 1Gbyte boundaries. This way we can use 1GByte
> * pages in the host.
> @@ -143,9 +143,9 @@ static void pc_init1(QEMUMachineInitArgs *args,
> guest_info->has_pci_info = has_pci_info;
> guest_info->isapc_ram_fw = !pci_enabled;
>
> - if (smbios_type1_defaults) {
> + if (smbios_defaults) {
> /* These values are guest ABI, do not change */
> - smbios_set_type1_defaults("QEMU", "Standard PC (i440FX + PIIX, 1996)",
> + smbios_set_defaults("QEMU", "Standard PC (i440FX + PIIX, 1996)",
> args->machine->name);
> }
Need to be careful here. smbios_type1_defaults handles machine type
compatibility. qemu version 1.7 (and older) don't set any smbios fields
by default. Current qemu behaves simliar with -M pc-i440fx-1.7 (+older)
for compatibility reasons, and smbios_type1_defaults controls that.
Given that we don't have a stable release which sets smbios defaults I
think it is ok to do it this way (assuming it is merged before the 2.0
release).
Splitting the patches would be nice for review (add table generator /
switch type0 / switch type1 / remove field support / add type2).
Maybe we should continue to use the individual fields interface for 1.7
machine types, for best backward compatibility.
Overall it looks good to me, don't see any major issues.
cheers,
Gerd
next prev parent reply other threads:[~2014-03-05 11:00 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-17 16:09 [Qemu-devel] [PATCH v2, Ping] SMBIOS: Upgrade Type17 to v2.3, add Type2 Gabriel L. Somlo
2014-02-17 20:33 ` Kevin O'Connor
2014-02-18 10:21 ` Gerd Hoffmann
2014-02-18 19:17 ` Gabriel L. Somlo
2014-02-18 20:02 ` Kevin O'Connor
2014-02-19 9:46 ` Gerd Hoffmann
2014-02-19 22:03 ` [Qemu-devel] [PATCH v3] SMBIOS: Update Type 4, 17 structs to v2.3 of the spec Gabriel L. Somlo
2014-02-18 21:08 ` [Qemu-devel] [PATCH v2, Ping] SMBIOS: Upgrade Type17 to v2.3, add Type2 Laszlo Ersek
2014-02-18 21:28 ` Laszlo Ersek
2014-02-19 9:59 ` Gerd Hoffmann
2014-02-19 20:40 ` Gabriel L. Somlo
2014-02-19 22:20 ` Laszlo Ersek
2014-02-20 15:27 ` Gerd Hoffmann
2014-02-20 15:38 ` Gabriel L. Somlo
2014-02-20 15:42 ` Gabriel L. Somlo
2014-02-20 16:32 ` Gabriel L. Somlo
2014-02-20 18:07 ` Laszlo Ersek
2014-03-04 19:19 ` [Qemu-devel] [PATCH 1/2] QEMU: SMBIOS: Update all structs to v2.3; Add type 2 struct Gabriel L. Somlo
2014-03-04 19:20 ` [Qemu-devel] [PATCH 2/2 (RFC)] QEMU: SMBIOS: Build full smbios tables Gabriel L. Somlo
2014-03-04 20:34 ` Kevin O'Connor
2014-03-05 10:59 ` Gerd Hoffmann [this message]
2014-03-05 14:48 ` Gabriel L. Somlo
2014-03-06 9:03 ` Gerd Hoffmann
2014-03-06 16:09 ` Gabriel L. Somlo
2014-03-06 17:04 ` Laszlo Ersek
2014-03-09 2:57 ` [Qemu-devel] " Gabriel L. Somlo
2014-03-09 19:18 ` Laszlo Ersek
2014-03-09 23:40 ` Gabriel L. Somlo
2014-03-09 3:01 ` [Qemu-devel] [PATCH 1/7] SMBIOS: Update all table definitions to smbios spec v2.3 Gabriel L. Somlo
2014-03-09 3:01 ` [Qemu-devel] [PATCH 2/7] SMBIOS: Rename smbios_set_type1_defaults() for more general use Gabriel L. Somlo
2014-03-09 3:02 ` [Qemu-devel] [PATCH 3/7] SMBIOS: Streamline setting smbios defaults with macro Gabriel L. Somlo
2014-03-09 3:03 ` [Qemu-devel] [PATCH 4/7] SMBIOS: Replace type collision check mechanism with bitmaps Gabriel L. Somlo
2014-03-09 3:04 ` [Qemu-devel] [PATCH 5/7] SMBIOS: Add code to build full smbios tables Gabriel L. Somlo
2014-03-09 3:05 ` [Qemu-devel] [PATCH 6/7] SMBIOS: Build full tables for types 0 and 1 Gabriel L. Somlo
2014-03-09 3:05 ` [Qemu-devel] [PATCH 7/7] SMBIOS: Remove unused code for passing individual fields to bios Gabriel L. Somlo
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=1394017184.17561.47.camel@nilsson.home.kraxel.org \
--to=kraxel@redhat.com \
--cc=agraf@suse.de \
--cc=gsomlo@gmail.com \
--cc=kevin@koconnor.net \
--cc=lersek@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.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).