Re: [kvm-devel] [PATCH] Fix host_cpuid() in qemu/qemu-kvm-x86.c

2008-02-21 Thread Avi Kivity
Alexander Graf wrote: > > This version fixes a wrong identifier (%0 instead of %1) and makes > things work without touching the stack. This works by using %esi as > backup-register for %ebx. It furthermore moves "function" directly to > eax, without relying on gcc optimizations to realize this.

Re: [kvm-devel] [PATCH] Fix host_cpuid() in qemu/qemu-kvm-x86.c

2008-02-21 Thread Alexander Graf
On Feb 21, 2008, at 10:14 AM, Alexander Graf wrote: On Feb 21, 2008, at 9:46 AM, Avi Kivity wrote: Bernhard Kaindl wrote: Hi, I found that on kvm-61 the cpuid in the guest was reported incorrectly when qemu-kvm was compiled with gcc-4.1 or 4.3. This resulted in linux-64bit not booting,

Re: [kvm-devel] [PATCH] Fix host_cpuid() in qemu/qemu-kvm-x86.c

2008-02-21 Thread Alexander Graf
On Feb 21, 2008, at 9:46 AM, Avi Kivity wrote: Bernhard Kaindl wrote: Hi, I found that on kvm-61 the cpuid in the guest was reported incorrectly when qemu-kvm was compiled with gcc-4.1 or 4.3. This resulted in linux-64bit not booting, complaining that it is not running on a 64-bit machine

Re: [kvm-devel] [PATCH] Fix host_cpuid() in qemu/qemu-kvm-x86.c

2008-02-21 Thread Avi Kivity
Bernhard Kaindl wrote: > Hi, > > I found that on kvm-61 the cpuid in the guest was reported incorrectly > when qemu-kvm was compiled with gcc-4.1 or 4.3. > > This resulted in linux-64bit not booting, complaining that it is not > running on a 64-bit machine. > > Symptom: Unexpected behaviour after t

[kvm-devel] [PATCH] Fix host_cpuid() in qemu/qemu-kvm-x86.c

2008-02-20 Thread Bernhard Kaindl
Hi, I found that on kvm-61 the cpuid in the guest was reported incorrectly when qemu-kvm was compiled with gcc-4.1 or 4.3. This resulted in linux-64bit not booting, complaining that it is not running on a 64-bit machine. Symptom: Unexpected behaviour after the assembly snippet. Solution: New as