From owner-svn-src-head@freebsd.org Tue Feb 20 06:38:56 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E86CF07A2F; Tue, 20 Feb 2018 06:38:56 +0000 (UTC) (envelope-from wma@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E938F85C07; Tue, 20 Feb 2018 06:38:55 +0000 (UTC) (envelope-from wma@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DFA3325BF0; Tue, 20 Feb 2018 06:38:55 +0000 (UTC) (envelope-from wma@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1K6ctfY028438; Tue, 20 Feb 2018 06:38:55 GMT (envelope-from wma@FreeBSD.org) Received: (from wma@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1K6ctta028437; Tue, 20 Feb 2018 06:38:55 GMT (envelope-from wma@FreeBSD.org) Message-Id: <201802200638.w1K6ctta028437@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wma set sender to wma@FreeBSD.org using -f From: Wojciech Macek Date: Tue, 20 Feb 2018 06:38:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329634 - head/sys/powerpc/powerpc X-SVN-Group: head X-SVN-Commit-Author: wma X-SVN-Commit-Paths: head/sys/powerpc/powerpc X-SVN-Commit-Revision: 329634 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2018 06:38:56 -0000 Author: wma Date: Tue Feb 20 06:38:55 2018 New Revision: 329634 URL: https://svnweb.freebsd.org/changeset/base/329634 Log: PowerNV: Send SIGILL on HEA illegal instruction exception Currently Hypervisor Emulation Assistance interrupt is unhandled. Executing an undefined instruction in userland triggers kernel panic. Handle this the same way as Facility Unavailable Interrupt - send SIGILL signal to userspace. Submitted by: Michal Stanek Obtained from: Semihalf Reviewed by: nwhitehorn, pdk@semihalf.com, wma Sponsored by: IBM, QCM Technologies Differential revision: https://reviews.freebsd.org/D14437 Modified: head/sys/powerpc/powerpc/trap.c Modified: head/sys/powerpc/powerpc/trap.c ============================================================================== --- head/sys/powerpc/powerpc/trap.c Tue Feb 20 05:35:00 2018 (r329633) +++ head/sys/powerpc/powerpc/trap.c Tue Feb 20 06:38:55 2018 (r329634) @@ -294,6 +294,7 @@ trap(struct trapframe *frame) break; case EXC_FAC: + case EXC_HEA: sig = SIGILL; ucode = ILL_ILLOPC; break;