summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-07-29 11:41:20 +0300
committerEduardo Habkost <ehabkost@redhat.com>2009-07-29 11:43:31 -0300
commit3acc655cc2e7e2fe04781ae270559ad17879a0c7 (patch)
treedf03d8068e02f64a34d46fab5995256239646afb
parent448844a369d533dbebf3e282c44f650f9903680d (diff)
add workaround for libvirt bug
Currently libvirt has a bug. It does not specify correct manufacturer family and product information when QEMU is started. Add workaround for the bug in QEMU. BZ: 499405 Upstream status: no way Signed-off-by: Gleb Natapov <gleb@redhat.com> Message-ID: <20090729084120.GL30449@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Bugzilla: 499405 RH-Upstream-status: not-applicable Acked-by: Mark McLoughlin <markmc@redhat.com> Acked-by: "Daniel P. Berrange" <berrange@redhat.com> Acked-by: Dor Laor <dlaor@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com>
-rwxr-xr-xbios/rombios32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bios/rombios32.c b/bios/rombios32.c
index 6c03eb3c..710e3204 100755
--- a/bios/rombios32.c
+++ b/bios/rombios32.c
@@ -1986,7 +1986,7 @@ smbios_init_type_1(void *start)
p->header.length = sizeof(struct smbios_type_1);
p->header.handle = 0x100;
- load_str_field_or_skip(1, manufacturer_str);
+ load_str_field_with_default(1, manufacturer_str, "Red Hat");
load_str_field_or_skip(1, product_name_str);
load_str_field_or_skip(1, version_str);
load_str_field_or_skip(1, serial_number_str);
@@ -1999,7 +1999,7 @@ smbios_init_type_1(void *start)
p->wake_up_type = 0x06; /* power switch */
load_str_field_or_skip(1, sku_number_str);
- load_str_field_or_skip(1, family_str);
+ load_str_field_with_default(1, family_str, "Red Hat Enterprise Linux");
*end = 0;
end++;