KVM: arm64: Make struct kvm_regs userspace-only
authorMarc Zyngier <maz@kernel.org>
Fri, 28 Jun 2019 21:40:58 +0000 (22:40 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 7 Jul 2020 08:28:38 +0000 (09:28 +0100)
commite47c2055c68e06977d7d8b7dbc2f7468a36d3658
tree4732dd60f6a3d177244721095348c218f3f9db39
parent5b78077a00f8109f7a4717b19309ef0a76d73372
KVM: arm64: Make struct kvm_regs userspace-only

struct kvm_regs is used by userspace to indicate which register gets
accessed by the {GET,SET}_ONE_REG API. But as we're about to refactor
the layout of the in-kernel register structures, we need the kernel to
move away from it.

Let's make kvm_regs userspace only, and let the kernel map it to its own
internal representation.

Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/kernel/asm-offsets.c
arch/arm64/kvm/fpsimd.c
arch/arm64/kvm/guest.c
arch/arm64/kvm/hyp/entry.S
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h
arch/arm64/kvm/regmap.c
arch/arm64/kvm/reset.c