[PATCH 3/3] arm64/kvm: use alternative auto-nop

Mark Rutland mark.rutland at arm.com
Thu Sep 8 04:33:39 PDT 2016


On Thu, Sep 08, 2016 at 01:16:48PM +0200, Christoffer Dall wrote:
> On Wed, Sep 07, 2016 at 11:07:10AM +0100, Mark Rutland wrote:
> > Make use of the new alternative_if and alternative_else_nop_endif and
> > get rid of our homebew NOP sleds, making the code simpler to read.
> 
> homebew?

Whoops. Should have been 'homebrew', though I'll change that to
'open-coded' to make this clearer.

> > Note that for __kvm_call_hyp the branch to __vhe_hyp_call has been moved
> > out of the alternative sequence, and in the default case there will be
> > four additional NOPs executed.
> > 
> > Signed-off-by: Mark Rutland <mark.rutland at arm.com>
> > Cc: Marc Zyngier <marc.zyngier at arm.com>
> > Cc: Christoffer Dall <christoffer.dall at linaro.org>
> > Cc: kvmarm at lists.cs.columbia.edu
> 
> Acked-by: Christoffer Dall <christoffer.dall at linaro.org>

Cheers!

Mark.



More information about the linux-arm-kernel mailing list