From 3acc655cc2e7e2fe04781ae270559ad17879a0c7 Mon Sep 17 00:00:00 2001 From: Gleb Natapov <gleb@redhat.com> Date: Wed, 29 Jul 2009 11:41:20 +0300 Subject: [PATCH 16/16] 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> --- bios/rombios32.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bios/rombios32.c b/bios/rombios32.c index 6c03eb3..710e320 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++; -- 1.6.3.rc4.29.g8146