public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Ken Brown <kbrown@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] fhandler_proc.cc(format_proc_cpuinfo): add tsxldtrk,  sev_es flags
Date: Thu, 17 Sep 2020 22:32:49 +0000 (GMT)	[thread overview]
Message-ID: <20200917223249.32AA8393C843@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1732249529c3a4d223940fea2b0143e63bb47e3a

commit 1732249529c3a4d223940fea2b0143e63bb47e3a
Author: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Date:   Thu Sep 17 12:51:25 2020 -0600

    fhandler_proc.cc(format_proc_cpuinfo): add tsxldtrk, sev_es flags
    
    Add linux-next cpuinfo flags for Intel TSX suspend load address tracking
    instructions and AMD Secure Encrypted Virtualization with Encrypted State.

Diff:
---
 winsup/cygwin/fhandler_proc.cc | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 196bafd18..6f6e8291a 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -1376,6 +1376,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
 	  cpuid (&features2, &unused, &unused, &unused, 0x8000001f);
 
 	  ftcprint (features2,  1, "sev");	/* secure encrypted virt */
+	/*ftcprint (features2,  3, "sev_es"); - print below */
 	}
       /* cpuid 0x80000008 ebx */
       if (maxe >= 0x80000008)
@@ -1400,6 +1401,12 @@ format_proc_cpuinfo (void *, char *&destbuf)
 /*	  ftcprint (features1, 26, "ssb_no");	*//* ssb fixed in hardware */
         }
 
+      /* cpuid 0x8000001f eax - set above */
+      if (maxe >= 0x8000001f)
+	{
+	  ftcprint (features2,  3, "sev_es");	/* AMD SEV encrypted state */
+	}
+
       /* cpuid 0x00000007 ebx */
       if (maxf >= 0x00000007)
 	{
@@ -1579,6 +1586,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
           ftcprint (features1,  8, "avx512_vp2intersect"); /* vec intcpt d/q */
           ftcprint (features1, 10, "md_clear");            /* verw clear buf */
           ftcprint (features1, 14, "serialize");           /* SERIALIZE instruction */
+          ftcprint (features1, 16, "tsxldtrk");		   /* TSX Susp Ld Addr Track */
           ftcprint (features1, 18, "pconfig");		   /* platform config */
           ftcprint (features1, 19, "arch_lbr");		   /* last branch records */
           ftcprint (features1, 28, "flush_l1d");	   /* flush l1d cache */


                 reply	other threads:[~2020-09-17 22:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200917223249.32AA8393C843@sourceware.org \
    --to=kbrown@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).