Re: KVM Test result, kernel 81e4400.., userspace 08385e4.. , One new issue

Alexander Graf
2008-02-25T10:28:26Z

[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]

On Feb 25, 2008, at 10:34 AM, Avi Kivity wrote:

> Yang, Sheng wrote:
>> On Monday 25 February 2008 16:41:25 Zhao, Yunfeng wrote:
>>
>>> Hi, all,
>>>
>>> This is today's KVM test result against kvm.git
>>> 81e4400b4df4e597a81c19c1161aa03c73613710 and kvm-userspace.git
>>> 08385e49dcff3585f597870af67301d7659a1ecb.
>>>
>>> One new issue has been found in today's testing:
>>> 1. fc5/fc6/rhel5u1 no-acpi up guests can't boot on pae host
>>> https://sourceforge.net/tracker/index.php?func=detail&aid=1901208&group_
>>> id=180599&atid=893831
>>>
>>
>> A quick bisect shows that the problem caused by "kvm: qemu: fix
>> host_cpuid()
>> on x86_64".
>>
>
> Yeah, I just found this out the hard way (by trying to debug this --
> silly me). The effects were that the "GenuineIntel" in cpuid
> identification was corrupted.

Could you please execute this source on a computer that fails with the
argument "0" (please compile with the same switches as qemu) and give
me the results + disassembly?

>
>
> I'm reverting that patch.

[-- Attachment #2: test.c --]
[-- Type: application/octet-stream, Size: 801 bytes --]

#include <stdio.h>

#define uint32_t unsigned int

static void host_cpuid(uint32_t function, uint32_t *eax, uint32_t *ebx,
uint32_t *ecx, uint32_t *edx)
{
uint32_t vec[4];

asm volatile("movl %%ebx, %%esi \n\t"
"cpuid \n\t"
"movl %%ebx, %1 \n\t"
"movl %%esi, %%ebx"
: "=a"(vec[0]), "=r"(vec[1]), "=c"(vec[2]), "=d"(vec[3])
: "0"(function)
: "esi");

if (eax)
*eax = vec[0];
if (ebx)
*ebx = vec[1];
if (ecx)
*ecx = vec[2];
if (edx)
*edx = vec[3];

}

int main(int argc, char **argv) {
unsigned int a,b,c,d;
host_cpuid(atoi(argv[1]), &a, &b, &c, &d);
printf("%#x = %#x %#x %#x %#x\n", atoi(argv[1]), a, b, c, d);
}

[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #4: Type: text/plain, Size: 158 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net