Skip to contentSkip to conversation

x86/CPUID: RSTR_FP_ERR_PTRS depends on FPU

PATCH In review Jan Beulich 3 participants 6 messages Sep 25, 2019 – Dec 9, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/CPUID: RSTR_FP_ERR_PTRS depends on FPU

There's nothing to restore here if there's no FPU in the first place.

---
To be considered for 4.13 since RSTR_FP_ERR_PTRS support was introduced just recently.

xen/tools/gen-cpuid.py +3 -2
@@ -168,8 +168,9 @@ def crunch_numbers(state):
     deps = {
         # FPU is taken to mean support for the x87 regisers as well as the
         # instructions.  MMX is documented to alias the %MM registers over the
-        # x87 %ST registers in hardware.
-        FPU: [MMX],
+        # x87 %ST registers in hardware.  Correct restoring of error pointers
+        # of course makes no sense without there being anything to restore.
+        FPU: [MMX, RSTR_FP_ERR_PTRS],
 
         # The PSE36 feature indicates that reserved bits in a PSE superpage
         # may be used as extra physical address bits.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
Quoted 6 lines · Jürgen Groß
Quoted 3 lines · Jan Beulich

There's nothing to restore here if there's no FPU in the first place.

While I've committed the change to the unstable branch, making use of this R-a-b now without asking would seem abusive to me. I'd expect you don't want the 4.13 branch disturbed more than really helpful, and hence I expect you'd rather not see this go in there now. Please let me know if you view this differently.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
Quoted 6 lines · Jan Beulich
Quoted 5 lines · Jürgen Groß
Quoted 3 lines · Jan Beulich

There's nothing to restore here if there's no FPU in the first place.

Quoted 7 lines
Quoted 1 line

While I've committed the change to the unstable branch, making use of this R-a-b now without asking would seem abusive to me. I'd expect you don't want the 4.13 branch disturbed more than really helpful, and hence I expect you'd rather not see this go in there now. Please let me know if you view this differently.

I appreciate that a lot. Please don't commit this to 4.13 now. :-)

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw

[Xen-devel] Ping: [PATCH] x86/CPUID: RSTR_FP_ERR_PTRS depends on FPU

In reply to Jan Beulich
Quoted 6 lines · Jan Beulich

There's nothing to restore here if there's no FPU in the first place.

---
To be considered for 4.13 since RSTR_FP_ERR_PTRS support was introduced just recently.

And already release-acked by Jürgen.

Jan

Quoted 4 lines
xen/tools/gen-cpuid.py +0 -0
@@ -168,8 +168,9 @@ def crunch_numbers(state):
     deps = {

xen/tools/gen-cpuid.py def crunch_numbers(state): · line 176

Quoted 10 lines
xen/tools/gen-cpuid.py +3 -2
         # FPU is taken to mean support for the x87 regisers as well as the
         # instructions.  MMX is documented to alias the %MM registers over the
-        # x87 %ST registers in hardware.
-        FPU: [MMX],
+        # x87 %ST registers in hardware.  Correct restoring of error pointers
+        # of course makes no sense without there being anything to restore.
+        FPU: [MMX, RSTR_FP_ERR_PTRS],
 
         # The PSE36 feature indicates that reserved bits in a PSE superpage
         # may be used as extra physical address bits.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by
#5 lore raw

Re: [Xen-devel] Ping: [PATCH] x86/CPUID: RSTR_FP_ERR_PTRS depends on FPU

Quoted 8 lines · Jan Beulich
Quoted 6 lines · Jan Beulich

There's nothing to restore here if there's no FPU in the first place.

---
To be considered for 4.13 since RSTR_FP_ERR_PTRS support was introduced just recently.

And already release-acked by Jürgen.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel