Skip to contentSkip to conversation

x86: enlightenment for ticket spinlocks

PATCH Jan Beulich 2 participants 4 messages Jan 31, 2010 – Feb 1, 2010

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines
Quoted 1 line
Quoted 1 line

"H. Peter Anvin" 01/31/10 2:42 AM >>>

+ * EBX-EDX: "XenVMMXenVMM" signature, allowing positive identification
+ * of a Xen host.
+ */

(quoted diff) +3 -0
+#define XEN_CPUID_SIGNATURE_EBX 0x566e6558 /* "XenV" */
+#define XEN_CPUID_SIGNATURE_ECX 0x65584d4d /* "MMXe" */
+#define XEN_CPUID_SIGNATURE_EDX 0x4d4d566e /* "nVMM" */

I hope you know this spells "MMXenVMMXenV". The ordering is ecx-edx-ebx (register numbers 1, 2, 3).

According to the documentation I have, the ordering is EBX-EDX-ECX, so indeed the spelling would seem broken, but since this is an interface header taken directly from Xen, it's got to be (and it works) that way. Odd.

Jan

#1 lore raw
Quoted 8 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line

"H. Peter Anvin" 01/31/10 2:42 AM >>>

+ * EBX-EDX: "XenVMMXenVMM" signature, allowing positive identification
+ * of a Xen host.
+ */

(quoted diff) +3 -0
+#define XEN_CPUID_SIGNATURE_EBX 0x566e6558 /* "XenV" */
+#define XEN_CPUID_SIGNATURE_ECX 0x65584d4d /* "MMXe" */
+#define XEN_CPUID_SIGNATURE_EDX 0x4d4d566e /* "nVMM" */
Quoted 8 lines
Quoted 2 lines

I hope you know this spells "MMXenVMMXenV". The ordering is ecx-edx-ebx (register numbers 1, 2, 3).

According to the documentation I have, the ordering is EBX-EDX-ECX, so indeed the spelling would seem broken, but since this is an interface header taken directly from Xen, it's got to be (and it works) that way. Odd.

It's probably a bug that's now cast in stone. That happends. I just had to be picky. (And yes, it's ebx-edx-ecx; see my second email.)

-hpa

Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.
#2 lore raw
Quoted 19 lines
Quoted 1 line
Quoted 1 line

"H. Peter Anvin" <[email protected]> 31.01.10 19:43 >>>

Quoted 8 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line

"H. Peter Anvin" 01/31/10 2:42 AM >>>

+ * EBX-EDX: "XenVMMXenVMM" signature, allowing positive identification
+ * of a Xen host.
+ */

(quoted diff) +3 -0
+#define XEN_CPUID_SIGNATURE_EBX 0x566e6558 /* "XenV" */
+#define XEN_CPUID_SIGNATURE_ECX 0x65584d4d /* "MMXe" */
+#define XEN_CPUID_SIGNATURE_EDX 0x4d4d566e /* "nVMM" */
Quoted 8 lines
Quoted 2 lines

I hope you know this spells "MMXenVMMXenV". The ordering is ecx-edx-ebx (register numbers 1, 2, 3).

According to the documentation I have, the ordering is EBX-EDX-ECX, so indeed the spelling would seem broken, but since this is an interface header taken directly from Xen, it's got to be (and it works) that way. Odd.

Quoted 2 lines

It's probably a bug that's now cast in stone. That happends. I just had to be picky. (And yes, it's ebx-edx-ecx; see my second email.)

The "good" thing is that this is not on leaf 0, but on leaf 0x4000??00, i.e. "normal" code would never display this garbled string.

Jan

#3 lore raw
Quoted 7 lines · Jan Beulich
Quoted 3 lines

It's probably a bug that's now cast in stone. That happends. I just had to be picky. (And yes, it's ebx-edx-ecx; see my second email.)

The "good" thing is that this is not on leaf 0, but on leaf 0x4000??00, i.e. "normal" code would never display this garbled string.

Well, yes, but the format of ID leaves is the same between groups.

-hpa

Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.