Re: [PATCH v6 10/11] KVM: arm64: BTI: Reset BTYPE when skipping emulated instructions

From: Marc Zyngier
Date: Sat Feb 15 2020 - 06:59:18 EST


On Wed, 12 Feb 2020 19:29:05 +0000
Mark Brown <broonie@xxxxxxxxxx> wrote:

> From: Dave Martin <Dave.Martin@xxxxxxx>
>
> Since normal execution of any non-branch instruction resets the
> PSTATE BTYPE field to 0, so do the same thing when emulating a
> trapped instruction.
>
> Branches don't trap directly, so we should never need to assign a
> non-zero value to BTYPE here.
>
> Signed-off-by: Dave Martin <Dave.Martin@xxxxxxx>
> Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>

Acked-by: Marc Zyngier <maz@xxxxxxxxxx>

M.
--
Jazz is not dead. It just smells funny...