From: "Michael S. Tsirkin" <mst@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Eduardo Habkost <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 2/2] smbios: Set system manufacturer, product & version by default
Date: Wed, 30 Oct 2013 21:17:41 +0200 [thread overview]
Message-ID: <20131030191741.GB7330@redhat.com> (raw)
In-Reply-To: <874n7y3hyq.fsf@blackfin.pond.sub.org>
On Wed, Oct 30, 2013 at 04:18:37PM +0100, Markus Armbruster wrote:
> "Michael S. Tsirkin" <mst@redhat.com> writes:
>
> > On Wed, Oct 30, 2013 at 12:29:16PM -0200, Eduardo Habkost wrote:
> >> On Wed, Oct 30, 2013 at 04:18:16PM +0200, Michael S. Tsirkin wrote:
> >> > On Wed, Oct 30, 2013 at 01:56:40PM +0100, armbru@redhat.com wrote:
> >> > > From: Markus Armbruster <armbru@redhat.com>
> >> > >
> >> > > Currently, we get SeaBIOS defaults: manufacturer Bochs, product Bochs,
> >> > > no version. Best SeaBIOS can do, but we can provide better defaults:
> >> > > manufacturer QEMU, product & version taken from QEMUMachine desc and
> >> > > name.
> >> > >
> >> > > Take care to do this only for new machine types, of course.
> >> > >
> >> > > Signed-off-by: Markus Armbruster <armbru@redhat.com>
> >> >
> >> > I feel applying this one would be a mistake.
> >> >
> >> > Machine desc is for human readers.
> >> > For example, it currently says "Standard PC (Q35 + ICH9, 2009)"
> >> > but if we add a variant with IDE compatibility mode we will likely want to
> >> > tweak it to say "Standard PC (Q35 + ICH9/AHCI mode, 2009)"
> >> > and add another one saying ""Standard PC (Q35 + ICH9/compat mode,
> >> > 2009)".
> >> >
> >> > In other words we want the ability to tweak
> >> > description retroactively, and exposing it to guest will
> >> > break this ability.
> >> >
> >> > So we really need a new field not tied to the human description.
> >> >
> >>
> >> You have a point, but if we do that one day, then we can add a new
> >> smbios-specific field and set it for each of the existing machine-types
> >> so they keep the same ABI. This patch doesn't make us unable to do that
> >> in the future.
> >
> > We'll likely forget and just break guest ABI.
> > So we really need a unit test for this, too.
>
> More tests are good, but we I think we got bigger fish to fry than
> writing tests to catch changes that are so obviously foolish as messing
> with old machine type's QEMUMachine.
You "messed with" old machine type's QEMUMachine in your cleanup
patches too, didn't you?
> >> As we are past hard freeze, I think this simple patch is better than a
> >> more complex solution for a problem we still don't have (that can still
> >> be implemented in 1.8).
> >
> > I don't see why we need to rush this into 1.7.
> > Downstreams want their info in smbios for support, branding etc,
> > but I don't see a burning need for this in upstream QEMU.
> > It's kind of nice to have it say "QEMU", but we can afford to
> > delay and do it properly for 1.8.
>
> Define "properly". I don't see what I'd like to do differently for 1.8.
With proper tests going in first before we start changing things.
Ideally with better separation between user visible and guest visible
interfaces - though if there was a test to catch guest visible changes,
I would be less worried about this lack of separation.
--
MST
next prev parent reply other threads:[~2013-10-30 19:15 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 [this message]
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
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=20131030191741.GB7330@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 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).