Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

From
Peter Zijlstra <peterz@infradead.org>
Date
2017-02-13 22:31:50
Also in
kvm, linux-arch, lkml
Reply to
Waiman Long, 2017-02-13
On Mon, Feb 13, 2017 at 05:24:36PM -0500, Waiman Long wrote:
quoted
quoted
movsql %edi, %rax;
movq __per_cpu_offset(,%rax,8), %rax;
cmpb $0, %[offset](%rax);
setne %al;
I have thought of that too. However, the goal is to eliminate memory
read/write from/to stack. Eliminating a register sign-extend instruction
won't help much in term of performance.
Problem here is that all instructions have dependencies, so if you can
get rid of the sign extend mov you kill a bunch of stall cycles (I would
expect).

But yes, peanuts vs the stack load/stores.
Thread (13 messages) 13 messages, 4 authors, last reply 2017-02-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help