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)
commitf242adaf0c7e8376e9f54ffd6ef088df84577893
tree989465b4dd9ae7b9629580ad4b8f07d2136e455e
parentfb280e97576a91c01b2a1712dba31024748b3084
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