From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Setting nx bit in virtual CPU Date: Wed, 07 Apr 2010 23:48:37 +0300 Message-ID: <4BBCEFA5.3050900@redhat.com> References: <4BB126AC.8040401@huskydog.org.uk> <4BB45CA2.5040304@redhat.com> <4BB65C9D.3070505@huskydog.org.uk> <4BB99F03.3020208@redhat.com> <4BBBB63B.60007@huskydog.org.uk> <4BBC1A86.6080506@redhat.com> <4BBC7645.2070904@huskydog.org.uk> <4BBC7958.9010903@redhat.com> <4BBCED32.30304@huskydog.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Richard Simpson Return-path: Received: from mx1.redhat.com ([209.132.183.28]:12308 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751947Ab0DGUso (ORCPT ); Wed, 7 Apr 2010 16:48:44 -0400 In-Reply-To: <4BBCED32.30304@huskydog.org.uk> Sender: kvm-owner@vger.kernel.org List-ID: On 04/07/2010 11:38 PM, Richard Simpson wrote: > On 07/04/10 13:23, Avi Kivity wrote: > >> On 04/07/2010 03:10 PM, Richard Simpson wrote: >> >>> On 07/04/10 06:39, Avi Kivity wrote: >>> >>> >>>> On 04/07/2010 01:31 AM, Richard Simpson wrote: >>>> >>>> >>>>> >>>>> >>>>>> 2.6.27 should be plenty fine for nx. Really the important bit is that >>>>>> the host kernel has nx enabled. Can you check if that is so? >>>>>> >>>> The attached script should verify it. >>>> >>> IOError: [Errno 2] No such file or directory: '/dev/msr0' >>> >> Run as root, please. And check first that you have a file named >> /dev/cpu/0/msr. >> > Doh! > > gordon Code # ./check-nx > nx: enabled > gordon Code # > > OK, seems to be enabled just fine. Any other ideas? I am beginning to > get that horrible feeling that there isn't a real problem and it is just > me being dumb! > I really hope so, because I am out of ideas... :) Can you verify check-nx returns disabled on the guest? Does /proc/cpuinfo show nx in the guest? -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.