Skip to contentSkip to conversation

x86/thunk: Don't opencode TSX instructions in clear_bhb_tsx()

PATCH In review Andrew Cooper 2 participants 2 messages May 1, 2025 – May 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/thunk: Don't opencode TSX instructions in clear_bhb_tsx()

The new toolchain baseline understands the RTM instructions.

No functional change.

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>

---
 xen/arch/x86/bhb-thunk.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/bhb-thunk.S +2 -2
index 678c00c5d06f..f5ac41834bbd 100644
@@ -19,8 +19,8 @@
  * disabled for e.g. TAA mitigation reasons.
  */
 FUNC(clear_bhb_tsx)
-        .byte 0xc7, 0xf8; .long 1f - 0f /* xbegin 1f */
-0:      .byte 0xc6, 0xf8, 0             /* xabort $0 */
+        xbegin  1f
+        xabort  $0
         int3
 1:
         ret
Signature · 1 line
2.39.5