KVM: arm64: Move kvm_vcpu_trap_il_is32bit into kvm_skip_instr32()
authorMarc Zyngier <maz@kernel.org>
Tue, 13 Oct 2020 10:14:38 +0000 (11:14 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 10 Nov 2020 08:34:24 +0000 (08:34 +0000)
commit6ddbc281e2aa21c5917e015a373958455f5eb3c1
treed7f2dbabe42217481059dd62157b08ff5fef52eb
parentc22588c99635ac4dace0ce2d55c1e2dc4f13cb54
KVM: arm64: Move kvm_vcpu_trap_il_is32bit into kvm_skip_instr32()

There is no need to feed the result of kvm_vcpu_trap_il_is32bit()
to kvm_skip_instr(), as only AArch32 has a variable length ISA, and
this helper can equally be called from kvm_skip_instr32(), reducing
the complexity at all the call sites.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/kvm/handle_exit.c
arch/arm64/kvm/hyp/aarch32.c
arch/arm64/kvm/mmio.c
arch/arm64/kvm/mmu.c
arch/arm64/kvm/sys_regs.c