KVM: arm64: Make kvm_skip_instr() and co private to HYP
authorMarc Zyngier <maz@kernel.org>
Wed, 14 Oct 2020 08:29:27 +0000 (09:29 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 10 Nov 2020 08:34:24 +0000 (08:34 +0000)
commitcdb5e02ed133731f8a6676a389ed40ca303cab7c
tree0b4e7d3d329cbe902aaacd80b76e9c3282956806
parent6ddbc281e2aa21c5917e015a373958455f5eb3c1
KVM: arm64: Make kvm_skip_instr() and co private to HYP

In an effort to remove the vcpu PC manipulations from EL1 on nVHE
systems, move kvm_skip_instr() to be HYP-specific. EL1's intent
to increment PC post emulation is now signalled via a flag in the
vcpu structure.

Signed-off-by: Marc Zyngier <maz@kernel.org>
12 files changed:
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/handle_exit.c
arch/arm64/kvm/hyp/include/hyp/adjust_pc.h [new file with mode: 0644]
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/arm64/kvm/hyp/nvhe/switch.c
arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c
arch/arm64/kvm/hyp/vgic-v3-sr.c
arch/arm64/kvm/hyp/vhe/switch.c
arch/arm64/kvm/mmio.c
arch/arm64/kvm/mmu.c
arch/arm64/kvm/sys_regs.c