Re: [PATCH 0/6] x86: reduce paravirtualized spinlock overhead

2015-05-15 Thread Juergen Gross
Ping? On 04/30/2015 12:53 PM, Juergen Gross wrote: Paravirtualized spinlocks produce some overhead even if the kernel is running on bare metal. The main reason are the more complex locking and unlocking functions. Especially unlocking is no longer just one instruction but so complex

Re: [PATCH 0/6] x86: reduce paravirtualized spinlock overhead

2015-05-06 Thread Juergen Gross
On 05/05/2015 07:21 PM, Jeremy Fitzhardinge wrote: On 05/03/2015 10:55 PM, Juergen Gross wrote: I did a small measurement of the pure locking functions on bare metal without and with my patches. spin_lock() for the first time (lock and code not in cache) dropped from about 600 to 500 cycles

Re: [PATCH 0/6] x86: reduce paravirtualized spinlock overhead

2015-05-03 Thread Juergen Gross
On 04/30/2015 06:39 PM, Jeremy Fitzhardinge wrote: On 04/30/2015 03:53 AM, Juergen Gross wrote: Paravirtualized spinlocks produce some overhead even if the kernel is running on bare metal. The main reason are the more complex locking and unlocking functions. Especially unlocking is no longer

[PATCH 2/6] x86: move decision about clearing slowpath flag into arch_spin_lock()

2015-04-30 Thread Juergen Gross
__ticket_check_and_clear_slowpath() and the slowpath flag isn't set. Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/include/asm/spinlock.h | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/arch/x86/include/asm/spinlock.h b/arch/x86/include/asm

[PATCH 1/6] x86: use macro instead of 0 for setting TICKET_SLOWPATH_FLAG

2015-04-30 Thread Juergen Gross
For paravirtualized spinlocks setting the slowpath flag in __ticket_enter_slowpath() is done via setting bit 0 in lock-tickets.head instead of using a macro. Change this by defining an appropriate macro. Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/include/asm/spinlock.h | 3

[PATCH 3/6] x86: introduce new pvops function clear_slowpath

2015-04-30 Thread Juergen Gross
pointer in order to avoid spreading the knowledge which function to use. Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/include/asm/paravirt.h | 7 +++ arch/x86/include/asm/paravirt_types.h | 1 + arch/x86/include/asm/spinlock.h | 18 -- arch/x86/kernel/kvm.c

[PATCH 5/6] x86: switch config from UNINLINE_SPIN_UNLOCK to INLINE_SPIN_UNLOCK

2015-04-30 Thread Juergen Gross
There is no need any more for a special treatment of _raw_spin_unlock() regarding inlining compared to the other spinlock functions. Just treat it like all the other spinlock functions. Remove selecting UNINLINE_SPIN_UNLOCK in case of PARAVIRT_SPINLOCKS. Signed-off-by: Juergen Gross jgr

[PATCH 4/6] x86: introduce new pvops function spin_unlock

2015-04-30 Thread Juergen Gross
are not dependant on the order of lock prefix and paravirtualization patching as the sample instruction is subject to lock prefix patching as well. Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/include/asm/paravirt.h | 6 ++ arch/x86/include/asm/paravirt_types.h | 11 +++ arch

[PATCH 0/6] x86: reduce paravirtualized spinlock overhead

2015-04-30 Thread Juergen Gross
. Correct patching verified by disassembly of active kernel. Juergen Gross (6): x86: use macro instead of 0 for setting TICKET_SLOWPATH_FLAG x86: move decision about clearing slowpath flag into arch_spin_lock() x86: introduce new pvops function clear_slowpath x86: introduce new pvops function

[PATCH 6/6] x86: remove no longer needed paravirt_ticketlocks_enabled

2015-04-30 Thread Juergen Gross
With the paravirtualized spinlock unlock function being a pvops function paravirt_ticketlocks_enabled is no longer needed. Remove it. Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/include/asm/spinlock.h | 3 --- arch/x86/kernel/kvm.c| 14 -- arch/x86

Re: [Xen-devel] kasan_map_early_shadow() on Xen

2015-03-04 Thread Juergen Gross
On 03/03/2015 08:20 PM, Luis R. Rodriguez wrote: On Tue, Mar 3, 2015 at 2:06 AM, David Vrabel david.vra...@citrix.com wrote: On 03/03/15 09:40, Luis R. Rodriguez wrote: Andrey, I believe that on Xen we should disable kasan, would like confirmation Why? This is the first of heard of this.

Re: [Xen-devel] [PATCH RFC V6 0/11] Paravirtualized ticketlocks

2012-04-02 Thread Juergen Gross
, but it was rejected at that time. I wouldn't mind trying it again if there is some support from your side. :-) Juergen -- Juergen Gross Principal Developer Operating Systems PDG ESS SWE OS6 Telephone: +49 (0) 89 3222 2967 Fujitsu Technology Solutions e-mail

<    1   2   3   4   5