[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220711171347.27309-2-chang.seok.bae@intel.com>
Date: Mon, 11 Jul 2022 10:13:46 -0700
From: "Chang S. Bae" <chang.seok.bae@...el.com>
To: dave.hansen@...el.com, len.brown@...el.com, tony.luck@...el.com,
rafael.j.wysocki@...el.com, reinette.chatre@...el.com,
dan.j.williams@...el.com
Cc: bagasdotme@...il.com, corbet@....net, linux-doc@...r.kernel.org,
linux-man@...r.kernel.org, linux-kernel@...r.kernel.org,
chang.seok.bae@...el.com
Subject: [PATCH v3 1/2] x86/arch_prctl: Add AMX feature numbers as ABI constants
AMX state is dynamically enabled by the architecture-specific prctl().
Expose the XSTATE numbers as ABI constants. It will help applications as no
more spec look-up is needed for these numbers.
Signed-off-by: Chang S. Bae <chang.seok.bae@...el.com>
Cc: Tony Luck <tony.luck@...el.com>
Cc: linux-kernel@...r.kernel.org
---
Changes from v2:
* Add as a new patch (Tony Luck).
---
arch/x86/include/uapi/asm/prctl.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/x86/include/uapi/asm/prctl.h b/arch/x86/include/uapi/asm/prctl.h
index 500b96e71f18..f298c778f856 100644
--- a/arch/x86/include/uapi/asm/prctl.h
+++ b/arch/x86/include/uapi/asm/prctl.h
@@ -16,6 +16,9 @@
#define ARCH_GET_XCOMP_GUEST_PERM 0x1024
#define ARCH_REQ_XCOMP_GUEST_PERM 0x1025
+#define ARCH_XCOMP_TILECFG 17
+#define ARCH_XCOMP_TILEDATA 18
+
#define ARCH_MAP_VDSO_X32 0x2001
#define ARCH_MAP_VDSO_32 0x2002
#define ARCH_MAP_VDSO_64 0x2003
--
2.17.1
Powered by blists - more mailing lists