KVM: arm/arm64: arch_timer: Assign the phys timer on VHE systems
authorChristoffer Dall <christoffer.dall@arm.com>
Tue, 19 Feb 2019 13:04:30 +0000 (14:04 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 19 Feb 2019 21:05:42 +0000 (21:05 +0000)
commit9e01dc76be6a3b5768cb02130d2ff0055a68809a
tree6763096554b5c4143f49ee0653faf5a1d7761fca
parente604dd5d45c75c2112424dec74853efb708f4fa6
KVM: arm/arm64: arch_timer: Assign the phys timer on VHE systems

VHE systems don't have to emulate the physical timer, we can simply
assign the EL1 physical timer directly to the VM as the host always
uses the EL2 timers.

In order to minimize the amount of cruft, AArch32 gets definitions for
the physical timer too, but is should be generally unused on this
architecture.

Co-written with Marc Zyngier <marc.zyngier@arm.com>

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
arch/arm/include/asm/kvm_hyp.h
include/kvm/arm_arch_timer.h
virt/kvm/arm/arch_timer.c