From: "Michael S. Tsirkin" <mst@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: ehabkost@redhat.com, qemu-devel@nongnu.org, aliguori@amazon.com,
pbonzini@redhat.com, lersek@redhat.com, afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCH v3 3/2] smbios: Decouple system product from QEMUMachine
Date: Thu, 31 Oct 2013 08:16:32 +0200 [thread overview]
Message-ID: <20131031061632.GA8106@redhat.com> (raw)
In-Reply-To: <87zjpqyoll.fsf@blackfin.pond.sub.org>
On Thu, Oct 31, 2013 at 06:51:50AM +0100, Markus Armbruster wrote:
> Michael Tsirkin doesn't trust us to keep values of QEMUMachine member
> product stable in the future. Use copies instead, and in a way that
> makes it obvious that they're guest ABI.
>
> Note that we can be trusted to keep values of member name, because
> that has always been ABI.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Nice and clean. Thanks!
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> hw/i386/pc_piix.c | 3 ++-
> hw/i386/pc_q35.c | 3 ++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
> index 417ad33..1ffa1ac 100644
> --- a/hw/i386/pc_piix.c
> +++ b/hw/i386/pc_piix.c
> @@ -127,7 +127,8 @@ 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) {
> - smbios_set_type1_defaults("QEMU", args->machine->desc,
> + /* These values are guest ABI, do not change */
> + smbios_set_type1_defaults("QEMU", "Standard PC (i440FX + PIIX, 1996)",
> args->machine->name);
> }
>
> diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
> index 9e3213f..0dc75c1 100644
> --- a/hw/i386/pc_q35.c
> +++ b/hw/i386/pc_q35.c
> @@ -114,7 +114,8 @@ static void pc_q35_init(QEMUMachineInitArgs *args)
> guest_info->has_pci_info = has_pci_info;
> guest_info->isapc_ram_fw = false;
> if (smbios_type1_defaults) {
> - smbios_set_type1_defaults("QEMU", args->machine->desc,
> + /* These values are guest ABI, do not change */
> + smbios_set_type1_defaults("QEMU", "Standard PC (Q35 + ICH9, 2009)",
> args->machine->name);
> }
>
> --
> 1.8.1.4
>
next prev parent reply other threads:[~2013-10-31 6:14 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 12:56 [Qemu-devel] [PATCH v3 0/2] smbios nicer defaults for DMI type 1 (System) armbru
2013-10-30 12:56 ` [Qemu-devel] [PATCH v3 1/2] hw: Pass QEMUMachine to its init() method armbru
2013-10-30 13:13 ` Eduardo Habkost
2013-10-30 13:38 ` Andreas Färber
2013-10-31 6:17 ` Michael S. Tsirkin
2013-10-30 12:56 ` [Qemu-devel] [PATCH v3 2/2] smbios: Set system manufacturer, product & version by default armbru
2013-10-30 13:19 ` Eduardo Habkost
2013-10-30 14:18 ` Michael S. Tsirkin
2013-10-30 14:29 ` Eduardo Habkost
2013-10-30 14:48 ` Michael S. Tsirkin
2013-10-30 15:18 ` Markus Armbruster
2013-10-30 19:17 ` Michael S. Tsirkin
2013-10-30 20:22 ` Markus Armbruster
2013-10-30 23:01 ` Michael S. Tsirkin
2013-10-31 5:30 ` Markus Armbruster
2013-10-31 9:00 ` Eduardo Habkost
2013-10-30 14:48 ` Markus Armbruster
2013-10-30 19:12 ` Michael S. Tsirkin
2013-10-31 5:54 ` Markus Armbruster
2013-10-31 6:17 ` Michael S. Tsirkin
2013-10-30 14:20 ` [Qemu-devel] [PATCH v3 0/2] smbios nicer defaults for DMI type 1 (System) Michael S. Tsirkin
2013-10-31 5:51 ` [Qemu-devel] [PATCH v3 3/2] smbios: Decouple system product from QEMUMachine Markus Armbruster
2013-10-31 6:16 ` Michael S. Tsirkin [this message]
2013-10-31 8:20 ` Eduardo Habkost
2013-11-04 13:40 ` [Qemu-devel] [PATCH v3 0/2] smbios nicer defaults for DMI type 1 (System) Michael S. Tsirkin
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=20131031061632.GA8106@redhat.com \
--to=mst@redhat.com \
--cc=afaerber@suse.de \
--cc=aliguori@amazon.com \
--cc=armbru@redhat.com \
--cc=ehabkost@redhat.com \
--cc=lersek@redhat.com \
--cc=pbonzini@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.