From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFC] Expose host cpuid to guest Date: Thu, 22 Nov 2007 15:30:00 +0200 Message-ID: <47458458.3030104@qumranet.com> References: <20071121110631.GA14292@karma.qumranet.com> <200711221012.05384.mike@mtgambier.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Mike Lampard Return-path: In-Reply-To: <200711221012.05384.mike-/+b+wjvSUqIxsqv6Oivclw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Mike Lampard wrote: > With current kvm-git (commit 51727a110220681f6f43b005d069e28c58f5d151) > (userspace is current to commit 6a385c9539f9746d7ff51ef34c064c3eba86448b) and > the userspace portion of this patch I cannot boot a 64 bit guest (Mandriva > 2008 x64) on my AMD x2 without -cpu host. The guest kernel says "Your CPU > does not support long mode. Use a 32bit distribution.". Works fine without > the userspace portion of the patch. > > With -cpu host, the 64bit kernel starts to boot then panics almost > immediately: > Code: 0f 30 e9 ed fc ff ff b8 66 00 00 00 f0 0f ab 45 08 e9 e2 fa > RIP [ identify_cpu+0x609/0x700 > RSP > Kernel panic - not syncing: Attempted to kill the idle task! > > In the host log I see: cpu0 unhandled wrmsr: 0xc0010015, which might not have > anything to do with this patch of course :) > A listing/disassembly of the function will help show where the problem is. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/