From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [BUG] kvm: guest can not startup due to triple fault Date: Mon, 18 Oct 2010 16:19:50 +0200 Message-ID: <4CBC5786.9000107@redhat.com> References: <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> <4CBC5097.1020105@redhat.com> <20101018135813.GA20316@darkstar> <4CBC547A.8080700@redhat.com> <4CBC55FB.30205@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Ingo Molnar , "H. Peter Anvin" , Jan Kiszka , kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Dave Young Return-path: Received: from mx1.redhat.com ([209.132.183.28]:32495 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755292Ab0JROUB (ORCPT ); Mon, 18 Oct 2010 10:20:01 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 10/18/2010 04:15 PM, Dave Young wrote: > On Mon, Oct 18, 2010 at 10:13 PM, Avi Kivity wrote: > > On 10/18/2010 04:11 PM, Dave Young wrote: > >> > >> On Mon, Oct 18, 2010 at 10:06 PM, Avi Kivity wrote: > >> > On 10/18/2010 03:58 PM, Dave Young wrote: > >> >> > >> >> > > >> >> > Please patch hardware_setup() to show the value of > >> >> > boot_cpu_has(X86_FEATURE_NX). > >> >> > >> >> It's 0 > >> > >> Please wait, I reply too quick, actually it boots two times fine then > >> one time fail. > > > > What boots fine? The guest? > > Yes the guest > That makes some sort of wierd sense. First kvm samples X86_FEATURE_NX, sees that it has the feature, reports it to qemu, qemu runs the guest, NX gets disabled in between, the guest tries to enable NX, kvm kills it. Second time round, kvm reports that NX is not available, qemu does not enable it, neither does the guest, and everyone is happy. Please confirm that when the guest does boot, it boots without NX in /proc/cpuinfo. -- error compiling committee.c: too many arguments to function