From 3acc655cc2e7e2fe04781ae270559ad17879a0c7 Mon Sep 17 00:00:00 2001 From: Gleb Natapov Date: Wed, 29 Jul 2009 11:41:20 +0300 Subject: 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 Message-ID: <20090729084120.GL30449@redhat.com> Signed-off-by: Eduardo Habkost Bugzilla: 499405 RH-Upstream-status: not-applicable Acked-by: Mark McLoughlin Acked-by: "Daniel P. Berrange" Acked-by: Dor Laor Acked-by: Juan Quintela --- bios/rombios32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bios') 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++; -- cgit v1.2.3