From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755905Ab0JRNuz (ORCPT ); Mon, 18 Oct 2010 09:50:55 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:46313 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755153Ab0JRNuw (ORCPT ); Mon, 18 Oct 2010 09:50:52 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=VMI7QWRQp0PRoD/nmkWoq7RUJH9AAHtGZ5gGnasdyerGuPO+bpYS+Yhmza10KP39mD baX2kIa1syth8Or9TyxqfTpqS78SHpP9flQ+ZbJBzRj4I4rVw1GboynfjkK5ZXUumpN+ Inl6gzpdYnxutcitNVxH8wcBmGe0TG5nMDMSs= Date: Mon, 18 Oct 2010 21:51:08 +0800 From: Dave Young To: Avi Kivity Cc: Jan Kiszka , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [BUG] kvm: guest can not startup due to triple fault Message-ID: <20101018135107.GA16154@darkstar> References: <4CBAC342.1010609@redhat.com> <4CBAE8E2.1060704@redhat.com> <4CBBF3C8.9070104@web.de> <4CBC1047.6010501@redhat.com> <20101018125803.GA2497@darkstar> <4CBC4B06.3030300@redhat.com> <20101018134508.GA11885@darkstar> <4CBC4FA9.90406@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CBC4FA9.90406@redhat.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 18, 2010 at 03:46:17PM +0200, Avi Kivity wrote: > On 10/18/2010 03:45 PM, Dave Young wrote: > >On Mon, Oct 18, 2010 at 03:26:30PM +0200, Avi Kivity wrote: > >> On 10/18/2010 02:58 PM, Dave Young wrote: > >> >> > >> >> It's secondary_startup_64 enabling efer.sce and efer.nx. > >> >> > >> >> Dave, please post your /proc/cpuinfo. Is your host running with NX > >> >> disabled? > >> > > >> >I see nx bit in /proc/cpuinfo, Actually I don't know how to disable it. > >> > >> Strange. > >> > >> Please patch arch/x86/kvm/x86.c to printk efer_reserved_bits (a > >> global), efer (an argument) and old_efer (a local), and post the > >> results. > > > >I add printk before kvm_mmu_reset_context(vcpu), correct? get following value: > > > > Add it at the beginning please, otherwise we'll miss the important > one due to an early return. here it is: [ 3679.616500] efer_reserved_bits = 0xfffffffffffffafe [ 3679.616504] efer = 0xd01 [ 3679.616506] old_efer = 0x500