x86/entry: Use 32bit XOR in handle_ist_exception
PATCH 1/1 x86/entry: Use 32bit XOR in handle_ist_exception
This is a micro-optimsiation for Silvermont microarchitectures, which don't recognise the 64bit form as a zeroing idiom.
No functional change.
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
--- xen/arch/x86/x86_64/entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/x86_64/entry.S +1 -1
@@ -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
base-commit: fa2da5bce90b3777aa7a323e1cf201c97b56d278
prerequisite-patch-id: a9e4e1e34d08e876d1fcb3299c6d563086768722
prerequisite-patch-id: 703590f2c99382f6509c94bb5955f47ab2d7c57d
Signature · 1 line
2.30.2
Quoted 6 lines · Andrew Cooper
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 <[email protected]>
For my education, ...
Quoted 12 lines
xen/arch/x86/x86_64/entry.S +1
-1@@ -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
Quoted 1 line
base-commit:
fa2da5bce90b3777aa7a323e1cf201c97b56d278
... while I understand this, what ...
Quoted 2 lines
prerequisite-patch-id:
a9e4e1e34d08e876d1fcb3299c6d563086768722
prerequisite-patch-id:703590f2c99382f6509c94bb5955f47ab2d7c57d
... are these about? They look like they would be naming prereq changes which aren't committed yet, but (a) base-commit names the tip of the staging branch and (b) the hashes would be meaningless without a repo reference if they pointed at something that wasn't committed yet.
Jan
Quoted 8 lines · Jan Beulich
Quoted 6 lines · Andrew Cooper
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 <[email protected]>Reviewed-by Jan Beulich <[email protected]>
Thanks.
Quoted 18 lines
For my education, ...
Quoted 12 lines
xen/arch/x86/x86_64/entry.S +1
-1@@ -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,%rsiQuoted 1 line
base-commit:
fa2da5bce90b3777aa7a323e1cf201c97b56d278... while I understand this, what ...
Quoted 6 lines
Quoted 2 lines
prerequisite-patch-id:
a9e4e1e34d08e876d1fcb3299c6d563086768722
prerequisite-patch-id:703590f2c99382f6509c94bb5955f47ab2d7c57d... are these about? They look like they would be naming prereq changes which aren't committed yet, but (a) base-commit names the tip of the staging branch and (b) the hashes would be meaningless without a repo reference if they pointed at something that wasn't committed yet.
It's a slightly irritating side-effect of the functionality that generates base-commit.
What it means was that this patch was 2 commits deep into a branch and I haven't sent out the other two patches.
In this case, misc debugging that's not relevant to the change at all.
I try to strip it when I remember, but I forgot in this case.
~Andrew