All of lore.kernel.org
 help / color / mirror / Atom feed
* 64bit guest thinks it is 32bit in kvm-86 - Intel only
@ 2009-05-25  2:45 Josh Wilsdon
  2009-05-25  8:21 ` Mark McLoughlin
  0 siblings, 1 reply; 4+ messages in thread
From: Josh Wilsdon @ 2009-05-25  2:45 UTC (permalink / raw)
  To: kvm

I have been fighting with a problem with kvm-86 now for a while and I
wanted to see if this was a known issue or anyone had suggestions as
to where to look.  These tests are being run on an Intel Core 2 Quad
Q8400 with 4GB of RAM.  The host OS is Ubuntu 9.04 using the
2.6.28-11-server kernel that comes with Ubuntu 9.04.  I've narrowed
the problem down to kvm-86 not running 64 bit kernels in 64bit mode.
I have been testing with the stock Ubuntu 9.04 64-bit server kernel
"vmlinuz-2.6.28-11-server".  The minimal command I've been able to use
to reproduce this is:

    sudo kvm -M pc -cpu qemu64 -kernel /boot/vmlinuz-2.6.28-11-server
-vnc 0.0.0.0:0

With the kernel modules and userland from both kvm-84 and kvm-85
(compiled with the same options which just say --prefix=/usr and
--kerneldir=<my kernel source>) these options work fine and the kernel
starts up.  I'm not passing any filesystem so it hangs, but it boots.
With kvm-86 and the same options/configuration, the kernel refuses to
boot with the error message:

    "This kernel requires an x86-64 CPU, but only detected an i686 CPU.
     Unable to boot - please use a kernel appropriate for your CPU."

it works on all 3 versions when I add the -no-kvm option.

I have also tested this on an AMD Athlon 64 X2 4200+ CPU.  On that
machine, all three of the kvm versions tested worked correctly both
with and without the -no-kvm option.  I used the same binaries, the
same kernel and same set of modules on both systems, just kvm_intel
loaded on one and kvm_amd on the other.

Is there a known issue with the kvm_intel module in kvm-86 and 64bit
guests?  If not, any suggestions as to what I should look at next?

Thanks,
-Josh


-- 
Josh Wilsdon
LayerBoom Systems
joshw@layerboom.com
http://layerboom.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-26  8:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-25  2:45 64bit guest thinks it is 32bit in kvm-86 - Intel only Josh Wilsdon
2009-05-25  8:21 ` Mark McLoughlin
2009-05-26  3:41   ` Josh Wilsdon
2009-05-26  8:06     ` Avi Kivity

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.