]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Set up a background timer for the physical timer emulation
authorJintack Lim <jintack@cs.columbia.edu>
Fri, 3 Feb 2017 15:20:06 +0000 (10:20 -0500)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 8 Feb 2017 15:13:36 +0000 (15:13 +0000)
commit06609354692d75010762939d4f2892ced2413e6e
tree989465b4dd9ae7b9629580ad4b8f07d2136e455e
parent58c770fd3f75aa52c18ade9d65718f9f6b7684af
KVM: arm/arm64: Set up a background timer for the physical timer emulation

Set a background timer for the EL1 physical timer emulation while VMs
are running, so that VMs get the physical timer interrupts in a timely
manner.

Schedule the background timer on entry to the VM and cancel it on exit.
This would not have any performance impact to the guest OSes that
currently use the virtual timer since the physical timer is always not
enabled.

Signed-off-by: Jintack Lim <jintack@cs.columbia.edu>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/arch_timer.c