From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1039) id 4AF0E3858C54; Wed, 5 Apr 2023 22:44:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4AF0E3858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680734694; bh=8chO/XqsVPQckaLZjP7TIZzec3zSPsW871kSPC1Lq2g=; h=From:To:Subject:Date:From; b=YdxPczpNqRiwz8YkzS/n3t7IQ829w3BwBVGnBxKClLhpXVg4UCDAPjdCPBvJxs+hT 1GaEZJY724SHM1fdHcPXyiw0auBYfT9sS++yyYHJjauYDyvihz0Re4LLYnfMEno1y1 kZO8YctRu6XyTMNVx/l7MGYn8WDIv+2dCrzf21ro= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: H.J. Lu To: glibc-cvs@sourceware.org Subject: [glibc] : Add WRMSRNS support X-Act-Checkin: glibc X-Git-Author: H.J. Lu X-Git-Refname: refs/heads/master X-Git-Oldrev: a00db8305db02231cea6e3806d86526d209a580c X-Git-Newrev: 227983551d3b590e1a9ed4e81d793b7f6abfadd2 Message-Id: <20230405224454.4AF0E3858C54@sourceware.org> Date: Wed, 5 Apr 2023 22:44:54 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=227983551d3b590e1a9ed4e81d793b7f6abfadd2 commit 227983551d3b590e1a9ed4e81d793b7f6abfadd2 Author: H.J. Lu Date: Wed Apr 5 09:21:37 2023 -0700 : Add WRMSRNS support Add WRMSRNS support to . Reviewed-by: Noah Goldstein Diff: --- manual/platform.texi | 3 +++ sysdeps/x86/bits/platform/x86.h | 1 + sysdeps/x86/tst-get-cpu-features.c | 1 + 3 files changed, 5 insertions(+) diff --git a/manual/platform.texi b/manual/platform.texi index ecee3a7b39..af79f5eb4d 100644 --- a/manual/platform.texi +++ b/manual/platform.texi @@ -679,6 +679,9 @@ using a TSC deadline value. @item @code{WIDE_KL} -- AES wide Key Locker instructions. +@item +@code{WRMSRNS} -- WRMSRNS instruction. + @item @code{X2APIC} -- x2APIC. diff --git a/sysdeps/x86/bits/platform/x86.h b/sysdeps/x86/bits/platform/x86.h index 74b7f951e1..2a15ad937a 100644 --- a/sysdeps/x86/bits/platform/x86.h +++ b/sysdeps/x86/bits/platform/x86.h @@ -297,6 +297,7 @@ enum x86_cpu_FZLRM = x86_cpu_index_7_ecx_1_eax + 10, x86_cpu_FSRS = x86_cpu_index_7_ecx_1_eax + 11, x86_cpu_FSRCS = x86_cpu_index_7_ecx_1_eax + 12, + x86_cpu_WRMSRNS = x86_cpu_index_7_ecx_1_eax + 19, x86_cpu_HRESET = x86_cpu_index_7_ecx_1_eax + 22, x86_cpu_LAM = x86_cpu_index_7_ecx_1_eax + 26, diff --git a/sysdeps/x86/tst-get-cpu-features.c b/sysdeps/x86/tst-get-cpu-features.c index 329d4aafb4..9c436eaa64 100644 --- a/sysdeps/x86/tst-get-cpu-features.c +++ b/sysdeps/x86/tst-get-cpu-features.c @@ -209,6 +209,7 @@ do_test (void) CHECK_CPU_FEATURE_PRESENT (FZLRM); CHECK_CPU_FEATURE_PRESENT (FSRS); CHECK_CPU_FEATURE_PRESENT (FSRCS); + CHECK_CPU_FEATURE_PRESENT (WRMSRNS); CHECK_CPU_FEATURE_PRESENT (HRESET); CHECK_CPU_FEATURE_PRESENT (LAM); CHECK_CPU_FEATURE_PRESENT (AESKLE);