Skip to contentSkip to conversation

db/leaf_1d: Correct XCR0_CET_{U,S} information

PATCH In review Andrew Cooper 2 participants 3 messages Oct 8, 2024 – Mar 4, 2025 x86 cpuid database

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 db/leaf_1d: Correct XCR0_CET_{U,S} information

The description text itself mixed user and supervisor state.

Furthermore, CET is not an AMD-exclusive feature, nor even AMD's feature; it's Intel's feature, which AMD implement a subset of.

---
CC: [email protected]

I have to admit that I'm very confused as to why we have the <vendors> block. Any vendor can implement a feature, so this block feels like it can only ever be stale.

---
 db/xml/leaf_0d.xml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
db/xml/leaf_0d.xml +4 -2
index d36b36b01198..be34588903fb 100644
@@ -60,13 +60,15 @@
 	  <vendor>AMD</vendor>
 	</vendors>
       </bit9>
-      <bit11 len="1"  id="xcr0_cet_u"              desc="AMD XCR0.CET_U (bit 11) supported (CET supervisor state)">
+      <bit11 len="1"  id="xcr0_cet_u"              desc="XCR0.CET_U (bit 11) supported (CET user state)">
 	<vendors>
+	  <vendor>Intel</vendor>
 	  <vendor>AMD</vendor>
 	</vendors>
       </bit11>
-      <bit12 len="1"  id="xcr0_cet_s"              desc="AMD XCR0.CET_S (bit 12) support (CET user state)">
+      <bit12 len="1"  id="xcr0_cet_s"              desc="XCR0.CET_S (bit 12) supported (CET supervisor state)">
 	<vendors>
+	  <vendor>Intel</vendor>
 	  <vendor>AMD</vendor>
 	</vendors>
       </bit12>

base-commit: ca8056ee7291370e691d04a24d0a045f688f8573

Signature · 1 line
2.39.5
#1 lore raw

Hi Andrew,

First, I apologize. For some reason, the x86-cpuid list didn't forward /any/ emails to me, and I've just discovered all the pending ML emails through a random check of the lore archive :(

Quoted 10 lines · Andrew Cooper

The description text itself mixed user and supervisor state.

Furthermore, CET is not an AMD-exclusive feature, nor even AMD's feature; it's Intel's feature, which AMD implement a subset of.

---
CC: [email protected]

Thanks! Now merged to tip:

    https://gitlab.com/x86-cpuid.org/x86-cpuid-db/-/commit/cc6d4e32259b
Quoted 5 lines

I have to admit that I'm very confused as to why we have the <vendors> block. Any vendor can implement a feature, so this block feels like it can only ever be stale.

The rationale was to add this for any future HTML rendering of the XML database + user-space tools that might need it; e.g. Linux's tools/arch/x86/kcpuid/.

But, yes, so far, the <vendor> tag is not used by any of the project's XSLT transformers.

All the best,

--
Ahmed S. Darwish
Linutronix GmbH

#2 lore raw
Quoted 5 lines · Ahmed S. Darwish

Hi Andrew,

First, I apologize. For some reason, the x86-cpuid list didn't forward /any/ emails to me, and I've just discovered all the pending ML emails through a random check of the lore archive :(

No problem.  Honestly, I'd forgotten about it too.

Quoted 7 lines · Andrew Cooper
Quoted 5 lines

The description text itself mixed user and supervisor state.

Furthermore, CET is not an AMD-exclusive feature, nor even AMD's feature; it's Intel's feature, which AMD implement a subset of.

Quoted 7 lines
Quoted 4 lines

---
CC: [email protected]

Thanks! Now merged to tip:

    https://gitlab.com/x86-cpuid.org/x86-cpuid-db/-/commit/cc6d4e32259b

Thanks.  I guess I should follow up with some of more fixes.  (Mostly about how guest kernels must, or must not, interpret certain bits.)

~Andrew