From: Mike Lampard Subject: Re: [RFC] Expose host cpuid to guest Date: Fri, 23 Nov 2007 00:20:09 +1030 Message-ID: <200711230020.10035.mike@mtgambier.net> References: <20071121110631.GA14292@karma.qumranet.com> <200711221012.05384.mike@mtgambier.net> <47458458.3030104@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Avi Kivity To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: In-Reply-To: <47458458.3030104-atKUWr5tajBWk0Htik3J/w@public.gmane.org> Content-Disposition: inline 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 On Fri, 23 Nov 2007 12:00:00 am Avi Kivity wrote: > 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. erm.. sorry, seems the patch mis-applied @ my end, I just re-applied the userspace patch and the above problem is no longer, 1 down, 1 to go: > > > > 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. yes, of course.. I'll post it as soon as I can. Thanks for the help Mike ------------------------------------------------------------------------- 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/