]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6595ec36ef01e2cddade952fb36750f1aed4ba37
tree6763096554b5c4143f49ee0653faf5a1d7761fca
parent3149fa607236b54f9f743d09a829aefaee5832ca
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