]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/entry: Use 32bit XOR in handle_ist_exception
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 10 Feb 2023 21:22:37 +0000 (21:22 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Nov 2023 13:28:51 +0000 (13:28 +0000)
This is a micro-optimsiation for Silvermont microarchitectures, which don't
recognise the 64bit form as a zeroing idiom.

No functional change.

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

index 9a7b129aa7e46644415ef6146b2eb425df2e90f2..d95fc75b34f9b91bfa176f2a339ccbe0665d63a1 100644 (file)
@@ -1027,7 +1027,7 @@ handle_ist_exception:
          * Interrupted guest context. Clear the restore value for xen_cr3
          * and copy the context to stack bottom.
          */
-        xor   %r15, %r15
+        xor   %r15d, %r15d
         xor   %ebx, %ebx
         GET_CPUINFO_FIELD(guest_cpu_user_regs,di)
         movq  %rsp,%rsi