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 08:39:18 +0300 Message-ID: <4BBC1A86.6080506@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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050201030907060201010704" Cc: kvm@vger.kernel.org To: Richard Simpson Return-path: Received: from mx1.redhat.com ([209.132.183.28]:8880 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752501Ab0DGFjY (ORCPT ); Wed, 7 Apr 2010 01:39:24 -0400 In-Reply-To: <4BBBB63B.60007@huskydog.org.uk> Sender: kvm-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------050201030907060201010704 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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? >> >> > Umm, could you give me a clue about how to do that. It is some time > since I configured the host kernel, but I do have a /proc/config.gz. > Could I check by looking in that? > The attached script should verify it. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. --------------050201030907060201010704 Content-Type: text/plain; name="check-nx" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="check-nx" IyEvdXNyL2Jpbi9weXRob24KCmNsYXNzIG1zcihvYmplY3QpOgogICAgZGVmIF9faW5pdF9f KHNlbGYpOgogICAgICAgIHRyeToKICAgICAgICAgICAgc2VsZi5mID0gZmlsZSgnL2Rldi9j cHUvMC9tc3InKQogICAgICAgIGV4Y2VwdDoKICAgICAgICAgICAgc2VsZi5mID0gZmlsZSgn L2Rldi9tc3IwJykKICAgIGRlZiByZWFkKHNlbGYsIGluZGV4LCBkZWZhdWx0ID0gTm9uZSk6 CiAgICAgICAgaW1wb3J0IHN0cnVjdAogICAgICAgIHNlbGYuZi5zZWVrKGluZGV4KQogICAg ICAgIHRyeToKICAgICAgICAgICAgcmV0dXJuIHN0cnVjdC51bnBhY2soJ1EnLCBzZWxmLmYu cmVhZCg4KSlbMF0KICAgICAgICBleGNlcHQ6CiAgICAgICAgICAgIHJldHVybiBkZWZhdWx0 CgplZmVyID0gbXNyKCkucmVhZCgweGMwMDAwMDgwLCAwKQpueCA9IChlZmVyID4+IDExKSAm IDEKCmlmIG54OgogICBwcmludCAnbng6IGVuYWJsZWQnCmVsc2U6CiAgICBwcmludCAnbng6 IGRpc2FibGVkJwo= --------------050201030907060201010704--