[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH][SEABIOS] Make SMBIOS table pass MS SVVP test
From: |
Gleb Natapov |
Subject: |
[Qemu-devel] Re: [PATCH][SEABIOS] Make SMBIOS table pass MS SVVP test |
Date: |
Mon, 23 Nov 2009 13:08:30 +0200 |
On Sun, Nov 22, 2009 at 12:07:50PM -0500, Kevin O'Connor wrote:
> On Sun, Nov 22, 2009 at 04:08:53PM +0200, Gleb Natapov wrote:
> > Microsoft SVVP (Server Virtualization Validation Program) expects
> > arbitrary SMBIOS field to have certain values otherwise it fails.
> > We all want to make Microsoft happy don't we? So lets put values MS
> > expects in there.
> [...]
> > - load_str_field_or_skip(1, manufacturer_str);
> > - load_str_field_or_skip(1, product_name_str);
> > + load_str_field_with_default(1, manufacturer_str, "QEMU");
> > + load_str_field_with_default(1, product_name_str, "QEMU");
> > load_str_field_or_skip(1, version_str);
> > load_str_field_or_skip(1, serial_number_str);
>
> Can the CONFIG_APPNAMExx defines in config.h be used instead of hard
> coding QEMU? (If desired, the defaults can be changed from bochs to
> qemu.)
Qemu can do it in a local branch. But since Qemu uses SeaBIOS right now and
BOCHS doesn't lets change it.
>
> > - memcpy((char *)start, "CPU " "\0" "" "\0" "", 7);
> > - ((char *)start)[4] = cpu_number + '0';
> > + memcpy((char *)start, "CPU \0QEMU\0\0", 12);
> > + ((char *)start)[4] = cpu_number + '0';
>
> BTW, snprintf can now be used here.
>
snprintf in SeaBIOS doesn't have return value. In some situation it is
impossible to use it properly without it.
--
Gleb.
- [Qemu-devel] Re: [PATCH][SEABIOS] Make SMBIOS table pass MS SVVP test, (continued)
- Re: [Qemu-devel] Re: [PATCH][SEABIOS] Make SMBIOS table pass MS SVVP test, Yaniv Kaul, 2009/11/22
- Re: [Qemu-devel] Re: [PATCH][SEABIOS] Make SMBIOS table pass MS SVVP test, Carl-Daniel Hailfinger, 2009/11/22
- Re: [Qemu-devel] Re: [PATCH][SEABIOS] Make SMBIOS table pass MS SVVP test, Gleb Natapov, 2009/11/23
- Re: [Qemu-devel] Re: [PATCH][SEABIOS] Make SMBIOS table pass MS SVVP test, Sebastian Herbszt, 2009/11/23
- [Qemu-devel] Re: [PATCH][SEABIOS] Make SMBIOS table pass MS SVVP test, Gleb Natapov, 2009/11/23
[Qemu-devel] Re: [PATCH][SEABIOS] Make SMBIOS table pass MS SVVP test, Kevin O'Connor, 2009/11/22
- [Qemu-devel] Re: [PATCH][SEABIOS] Make SMBIOS table pass MS SVVP test,
Gleb Natapov <=