Re: [1/2] powerpc/64s: syscall optimize hypercall/syscall entry

2017-06-19 Thread Michael Ellerman
On Thu, 2017-06-08 at 15:35:04 UTC, Nicholas Piggin wrote: > After bc3551257a ("powerpc/64: Allow for relocation-on interrupts from > guest to host"), a getppid() system call goes from 307 cycles to 358 > cycles (+17%) on POWER8. This is due significantly to the scratch SPR > used by the hypercall

[PATCH 1/2] powerpc/64s: syscall optimize hypercall/syscall entry

2017-06-08 Thread Nicholas Piggin
After bc3551257a ("powerpc/64: Allow for relocation-on interrupts from guest to host"), a getppid() system call goes from 307 cycles to 358 cycles (+17%) on POWER8. This is due significantly to the scratch SPR used by the hypercall check. It turns out there are a some volatile registers common to