From nobody Mon Sep 30 12:23:40 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XHKx86P5jz5YDHW; Mon, 30 Sep 2024 12:23:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XHKx84YxJz4LVN; Mon, 30 Sep 2024 12:23:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727699020; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LHKE8fqVEfxZEBCbOTExUy89ZanFNRM3gfq+m0ojPyU=; b=LYZzUrPLApYcsNJpX4xu6xLvtfZHkYMI1FnVHST5KG5tlhEMYb/uK5dI7lGUJnp95y/qMl 6a5+PQ7kfRneO880JJGsiW1D3Z5wysx3mx4e0aksUF0kMZnfOdVnCfFNIbHNNHIH3mzgoa HqahBijOYitkrYTitUVj8T296ErYpDSxfKUG/lXaskIFA3UZe6lQqoOLNUhbRMSDyHSGyl GAUvnmOKxCiHAiBhkQlrFH7GGpC3ivwRMPg5fK7e3ZpW45odgvp8ssWnQJzCbQNAHFCsJ2 bo/ybgNMa8hzmo7On4W+x2ztAcBjCKJPSmfrAYgH/oPS2lK2gHof/FsPorwVaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727699020; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LHKE8fqVEfxZEBCbOTExUy89ZanFNRM3gfq+m0ojPyU=; b=bwTjc2QjQfGMlbsWlNB9WGQbQ04eR286qpPR8yIaDbCnfxWXTSwV9l9VYcu2odpWA2Dsxg FEjCjUchGg6pudiNUK69PJd0vCfQda8GImQPnN+5GUCE7JWl7fsRXOr012FGyUfBJB2CFG RA18nmU8GWKJln8q7urBlElYcfATaYch1d5ebuarI3aE5q+U85rlOMJK9TuiudiBAZ5vOC WbeMsk1wBR0gP25ZxCqxMP4BsySLRluTCvCdC0DrXq2AIJkra6P3vtPvLk53EhxGmYLEGI QX2yxmyvt+2L7ZPN/SLpSCrkwMddxZXNknfLydH69Ac7BR83im10MF278fEnTQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727699020; a=rsa-sha256; cv=none; b=iLOxb5+qyS88+yynmx1gJ6NmmITs/xOc2uHCST7Q7oU0NN08AeQGH21fev2TvlzgAH3mjB 85JZ5z/dvD3Rq0aAUX54rXGdiOriw8gAogppufYHrJ12oso+0JjCorbAEVm9E4SzHOjPph n9YlC4Afb1foKDapVWJcMletMJcqdtL4MPbFnzEMhMS3tQpQfbILG6sDMyQl9FTzKTjEYQ qApxJ9BDWbM3a3vxSIXNHL9799VcVHUadRLMWdsPk24E6nZJAor2fP22wiCFETrMU4RsI+ Vk+Mw+AU1g2valjUOpjoK8TMqV3DnNH7Kyw2pfSnWLvUIgK9N23ST22Lvy1UeQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XHKx849xFztBw; Mon, 30 Sep 2024 12:23:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48UCNe2H071064; Mon, 30 Sep 2024 12:23:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48UCNeDO071061; Mon, 30 Sep 2024 12:23:40 GMT (envelope-from git) Date: Mon, 30 Sep 2024 12:23:40 GMT Message-Id: <202409301223.48UCNeDO071061@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: fe5ed2496e44 - main - arm64: Don't trap SVE to EL2 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fe5ed2496e44aec018a6215175bba225b20d81fd Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=fe5ed2496e44aec018a6215175bba225b20d81fd commit fe5ed2496e44aec018a6215175bba225b20d81fd Author: Andrew Turner AuthorDate: 2024-09-27 13:41:08 +0000 Commit: Andrew Turner CommitDate: 2024-09-30 12:04:23 +0000 arm64: Don't trap SVE to EL2 As with floating point instructions don't trap SVE instructions to the hypervisor. This lets us handle then in the kernel. Reviewed by: imp (earlier version) Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D43303 --- sys/arm64/include/hypervisor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arm64/include/hypervisor.h b/sys/arm64/include/hypervisor.h index 0a138006b108..1ba1756ecdf2 100644 --- a/sys/arm64/include/hypervisor.h +++ b/sys/arm64/include/hypervisor.h @@ -55,11 +55,12 @@ /* Valid if HCR_EL2.E2H == 0 */ #define CPTR_TRAP_ALL 0xc01037ff /* Enable all traps */ #define CPTR_RES0 0x7fefc800 -#define CPTR_RES1 0x000033ff +#define CPTR_RES1 0x000032ff #define CPTR_TFP 0x00000400 #define CPTR_TTA 0x00100000 /* Valid if HCR_EL2.E2H == 1 */ #define CPTR_E2H_TRAP_ALL 0xd0000000 +#define CPTR_E2H_ZPEN 0x00030000 #define CPTR_E2H_FPEN 0x00300000 #define CPTR_E2H_TTA 0x10000000 /* Unconditionally valid */