smbios: Set system manufacturer, product & version by default
commitb29ad07ee8ff44115ac9167bba51d1cf59f8649c
authorMarkus Armbruster <armbru@redhat.com>
Wed, 30 Oct 2013 12:56:40 +0000 (30 13:56 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Dec 2013 11:29:22 +0000 (10 13:29 +0200)
tree78b9ab76e174b37e0da296910d26c357190aed1d
parent026736cebfe0e4a96f0761a2bae62cca92ce2a4e
smbios: Set system manufacturer, product & version by default

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.

Note: 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.

Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc_piix.c
hw/i386/pc_q35.c
hw/i386/smbios.c
include/hw/i386/smbios.h