KVM: arm64: Add handlers for protected VM System Registers
authorFuad Tabba <tabba@google.com>
Sun, 10 Oct 2021 14:56:32 +0000 (15:56 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 11 Oct 2021 13:57:29 +0000 (14:57 +0100)
commit6c30bfb18d0b7d09593f204c936493cfcd153956
tree721ca1ae3c155533575c5da3d1840c34340ec2d4
parent16dd1fbb12f72effcd3539561c2a94aed3ab6581
KVM: arm64: Add handlers for protected VM System Registers

Add system register handlers for protected VMs. These cover Sys64
registers (including feature id registers), and debug.

No functional change intended as these are not hooked in yet to
the guest exit handlers introduced earlier. So when trapping is
triggered, the exit handlers let the host handle it, as before.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211010145636.1950948-8-tabba@google.com
arch/arm64/include/asm/kvm_fixed_config.h [new file with mode: 0644]
arch/arm64/include/asm/kvm_hyp.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/include/nvhe/sys_regs.h [new file with mode: 0644]
arch/arm64/kvm/hyp/nvhe/Makefile
arch/arm64/kvm/hyp/nvhe/setup.c
arch/arm64/kvm/hyp/nvhe/switch.c
arch/arm64/kvm/hyp/nvhe/sys_regs.c [new file with mode: 0644]