Blob Blame History Raw
From e56e4275b3c4e8af573e9beb4b8d45f303e05ecd Mon Sep 17 00:00:00 2001
From: Gerd Hoffmann <kraxel@redhat.com>
Date: Mon, 28 Jul 2014 12:29:01 +0200
Subject: [PATCH] smbios: set bios vendor/version fields to Seabios/0.5.1

Message-id: <1406550541-26947-2-git-send-email-kraxel@redhat.com>
Patchwork-id: 60265
O-Subject: [RHEL-7.0.z seabios PATCH 1/1] smbios: set bios vendor/version fields to Seabios/0.5.1
Bugzilla: 1124216
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>

Mimic rhel6/seabios commit 1389643dad35a63362cd7d8357693f01175ef473.
Affects all 6.x and 7.0 machine types.

Note: 7.1+ machine types will switch over to the new-style smbios
handling in qemu 2.1 + seabios 1.7.5 (and ovmf), where seabios will
fill in the actual version information instead of the bogous 0.5.1
which we are using here for backward compatibility reasons.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 src/smbios.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
---
 src/smbios.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/smbios.c b/src/smbios.c
index 4e6df14..2ff4d98 100644
--- a/src/smbios.c
+++ b/src/smbios.c
@@ -110,8 +110,8 @@ smbios_init_type_0(void *start)
     p->header.length = sizeof(struct smbios_type_0);
     p->header.handle = 0;
 
-    load_str_field_with_default(0, vendor_str, CONFIG_APPNAME);
-    load_str_field_with_default(0, bios_version_str, CONFIG_APPNAME);
+    load_str_field_with_default(0, vendor_str, "Seabios");
+    load_str_field_with_default(0, bios_version_str, "0.5.1");
 
     p->bios_starting_address_segment = 0xe800;
 
-- 
1.7.1