]> xenbits.xensource.com Git - xen.git/commitdiff
x86/thunk: Don't opencode TSX instructions in clear_bhb_tsx()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 1 May 2025 18:05:53 +0000 (19:05 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 May 2025 13:12:10 +0000 (14:12 +0100)
The new toolchain baseline understands the RTM instructions.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/bhb-thunk.S

index 678c00c5d06f13d89a8029d47edf32a08373104e..f5ac41834bbd3bbaebcb35c4fa3cba4d248e135c 100644 (file)
@@ -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