]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Configure c15, PMU, and debug register traps on cpu load/put for VHE
authorChristoffer Dall <christoffer.dall@linaro.org>
Fri, 4 Aug 2017 11:47:18 +0000 (13:47 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 10:53:19 +0000 (10:53 +0000)
commit47eddb4575947043260c43bbbe506a6ecdc32d74
treee39e588a883ac6e565a9b8214c3e79ef3351c4be
parentc9ba0f74ddd31848100d64ed67e49595c3574922
KVM: arm64: Configure c15, PMU, and debug register traps on cpu load/put for VHE

We do not have to change the c15 trap setting on each switch to/from the
guest on VHE systems, because this setting only affects guest EL1/EL0
(and therefore not the VHE host).

The PMU and debug trap configuration can also be done on vcpu load/put
instead, because they don't affect how the VHE host kernel can access the
debug registers while executing KVM kernel code.

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_hyp.h
arch/arm64/kvm/hyp/switch.c
arch/arm64/kvm/hyp/sysreg-sr.c