From owner-svn-src-projects@FreeBSD.ORG Thu Oct 16 18:16:32 2014 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4FB6F792; Thu, 16 Oct 2014 18:16:32 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3C974A6A; Thu, 16 Oct 2014 18:16:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9GIGW7W097511; Thu, 16 Oct 2014 18:16:32 GMT (envelope-from neel@FreeBSD.org) Received: (from neel@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9GIGWiY097509; Thu, 16 Oct 2014 18:16:32 GMT (envelope-from neel@FreeBSD.org) Message-Id: <201410161816.s9GIGWiY097509@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: neel set sender to neel@FreeBSD.org using -f From: Neel Natu Date: Thu, 16 Oct 2014 18:16:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r273176 - projects/bhyve_svm/sys/amd64/vmm/amd X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2014 18:16:32 -0000 Author: neel Date: Thu Oct 16 18:16:31 2014 New Revision: 273176 URL: https://svnweb.freebsd.org/changeset/base/273176 Log: Use the correct fault type (VM_PROT_EXECUTE) for an instruction fetch. Modified: projects/bhyve_svm/sys/amd64/vmm/amd/svm.c Modified: projects/bhyve_svm/sys/amd64/vmm/amd/svm.c ============================================================================== --- projects/bhyve_svm/sys/amd64/vmm/amd/svm.c Thu Oct 16 18:13:10 2014 (r273175) +++ projects/bhyve_svm/sys/amd64/vmm/amd/svm.c Thu Oct 16 18:16:31 2014 (r273176) @@ -752,6 +752,8 @@ npf_fault_type(uint64_t exitinfo1) if (exitinfo1 & VMCB_NPF_INFO1_W) return (VM_PROT_WRITE); + else if (exitinfo1 & VMCB_NPF_INFO1_ID) + return (VM_PROT_EXECUTE); else return (VM_PROT_READ); }