]> 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)
commitad59655d4291e8c4a5edc6d69729245ceff44e4a
tree989465b4dd9ae7b9629580ad4b8f07d2136e455e
parent0eb325115ae71116bef6ea429a666db0d949f1db
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