OSDN Git Service

KVM: arm64: Split hyp/sysreg-sr.c to VHE/nVHE
authorDavid Brazdil <dbrazdil@google.com>
Thu, 25 Jun 2020 13:14:16 +0000 (14:14 +0100)
committerMarc Zyngier <maz@kernel.org>
Sun, 5 Jul 2020 17:38:29 +0000 (18:38 +0100)
commit13aeb9b400c5d7c5e979fdbbf994c787487f7889
tree48448b93214d0a8f5f96bc4943a6147af9340ade
parentd400c5b2025c9aeca76213d6bd4138ec39da5cef
KVM: arm64: Split hyp/sysreg-sr.c to VHE/nVHE

sysreg-sr.c contains KVM's code for saving/restoring system registers, with
some code shared between VHE/nVHE. These common routines are moved to
a header file, VHE-specific code is moved to vhe/sysreg-sr.c and nVHE-specific
code to nvhe/sysreg-sr.c.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200625131420.71444-12-dbrazdil@google.com
12 files changed:
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_hyp.h
arch/arm64/kernel/image-vars.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/Makefile
arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h [moved from arch/arm64/kvm/hyp/sysreg-sr.c with 56% similarity]
arch/arm64/kvm/hyp/nvhe/Makefile
arch/arm64/kvm/hyp/nvhe/switch.c
arch/arm64/kvm/hyp/nvhe/sysreg-sr.c [new file with mode: 0644]
arch/arm64/kvm/hyp/vhe/Makefile
arch/arm64/kvm/hyp/vhe/switch.c
arch/arm64/kvm/hyp/vhe/sysreg-sr.c [new file with mode: 0644]