Skip to content

qspinlock stuff -v15

Peter Zijlstra kvm linux-arch lkml virtualization xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 86 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9qspinlock: A simple generic 4-byte queue spinlockinclude/asm-generic/qspinlock.h include/asm-generic/qspinlock_types.h kernel/Kconfig.locks +3 more+408 -00 replies
1/9qspinlock: A simple generic 4-byte queue spinlockinclude/asm-generic/qspinlock.h include/asm-generic/qspinlock_types.h kernel/Kconfig.locks +3 more+408 -00 replies
1/9qspinlock: A simple generic 4-byte queue spinlockinclude/asm-generic/qspinlock.h include/asm-generic/qspinlock_types.h kernel/Kconfig.locks +3 more+408 -00 replies
2/9qspinlock, x86: Enable x86-64 to use queue spinlockarch/x86/Kconfig arch/x86/include/asm/qspinlock.h arch/x86/include/asm/spinlock.h +1 more+30 -00 replies
2/9qspinlock, x86: Enable x86-64 to use queue spinlockarch/x86/Kconfig arch/x86/include/asm/qspinlock.h arch/x86/include/asm/spinlock.h +1 more+30 -00 replies
3/9qspinlock: Add pending bitinclude/asm-generic/qspinlock_types.h kernel/locking/qspinlock.c+107 -240 replies
3/9qspinlock: Add pending bitinclude/asm-generic/qspinlock_types.h kernel/locking/qspinlock.c+107 -240 replies
3/9qspinlock: Add pending bitinclude/asm-generic/qspinlock_types.h kernel/locking/qspinlock.c+107 -240 replies
4/9qspinlock: Extract out code snippets for the next patchinclude/asm-generic/qspinlock_types.h kernel/locking/qspinlock.c+62 -310 replies
4/9qspinlock: Extract out code snippets for the next patchinclude/asm-generic/qspinlock_types.h kernel/locking/qspinlock.c+62 -310 replies
5/9qspinlock: Optimize for smaller NR_CPUSinclude/asm-generic/qspinlock_types.h kernel/locking/qspinlock.c+83 -10 replies
5/9qspinlock: Optimize for smaller NR_CPUSinclude/asm-generic/qspinlock_types.h kernel/locking/qspinlock.c+83 -10 replies
6/9qspinlock: Use a simple write to grab the lockkernel/locking/qspinlock.c+45 -160 replies
6/9qspinlock: Use a simple write to grab the lockkernel/locking/qspinlock.c+45 -160 replies
7/9qspinlock: Revert to test-and-set on hypervisorsarch/x86/include/asm/qspinlock.h include/asm-generic/qspinlock.h kernel/locking/qspinlock.c+24 -00 replies
7/9qspinlock: Revert to test-and-set on hypervisorsarch/x86/include/asm/qspinlock.h include/asm-generic/qspinlock.h kernel/locking/qspinlock.c+24 -00 replies
8/9qspinlock: Generic paravirt supportinclude/asm-generic/qspinlock.h kernel/locking/qspinlock.c kernel/locking/qspinlock_paravirt.h+248 -147 replies
8/9qspinlock: Generic paravirt supportinclude/asm-generic/qspinlock.h kernel/locking/qspinlock.c kernel/locking/qspinlock_paravirt.h+248 -10 replies
9/9qspinlock,x86,kvm: Implement KVM support for paravirt qspinlockarch/x86/Kconfig arch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_types.h +6 more+163 -138 replies
9/9qspinlock, x86, kvm: Implement KVM support for paravirt qspinlockarch/x86/Kconfig arch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_types.h +6 more+163 -130 replies

Reviews trailers per patch

None of the 20 patches has a Reviewed-by or Acked-by.

PatchRaghavendra K T
SeriesT-b T-b T-b
1/9
1/9
1/9
2/9
2/9
3/9
3/9
3/9
4/9
4/9
5/9
5/9
6/9
6/9
7/9
7/9
8/9
8/9
9/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] qspinlock stuff -v15

Hi Waiman,

As promised; here is the paravirt stuff I did during the trip to BOS last week.

All the !paravirt patches are more or less the same as before (the only real change is the copyright lines in the first patch).

The paravirt stuff is 'simple' and KVM only -- the Xen code was a little more convoluted and I've no real way to test that but it should be stright fwd to make work.

I ran this using the virtme tool (thanks Andy) on my laptop with a 4x overcommit on vcpus (16 vcpus as compared to the 4 my laptop actually has) and it both booted and survived a hackbench run (perf bench sched messaging -g 20 -l 5000).

So while the paravirt code isn't the most optimal code ever conceived it does work.

Also, the paravirt patching includes replacing the call with "movb $0, %arg1" for the native case, which should greatly reduce the cost of having CONFIG_PARAVIRT_SPINLOCKS enabled on actual hardware.

I feel that if someone were to do a Xen patch we can go ahead and merge this stuff (finally!).

These patches do not implement the paravirt spinlock debug stats currently implemented (separately) by KVM and Xen, but that should not be too hard to do on top and in the 'generic' code -- no reason to duplicate all that.

Of course; once this lands people can look at improving the paravirt nonsense.