diff options
author | Christoffer Dall <cdall@linaro.org> | 2017-01-06 16:07:48 +0100 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2017-11-06 16:23:17 +0100 |
commit | 1c88ab7ec8c53c4d806bb2b6871ddafdebbffa8b (patch) | |
tree | 2445aeec45a54b2d5a945c6b589563e0a59f039a /certs/Kconfig | |
parent | 7e90c8e5704cbb299d48e7debb1e61614cb12f41 (diff) | |
download | linux-1c88ab7ec8c53c4d806bb2b6871ddafdebbffa8b.tar.bz2 |
KVM: arm/arm64: Rework kvm_timer_should_fire
kvm_timer_should_fire() can be called in two different situations from
the kvm_vcpu_block().
The first case is before calling kvm_timer_schedule(), used for wait
polling, and in this case the VCPU thread is running and the timer state
is loaded onto the hardware so all we have to do is check if the virtual
interrupt lines are asserted, becasue the timer interrupt handler
functions will raise those lines as appropriate.
The second case is inside the wait loop of kvm_vcpu_block(), where we
have already called kvm_timer_schedule() and therefore the hardware will
be disabled and the software view of the timer state is up to date
(timer->loaded is false), and so we can simply check if the timer should
fire by looking at the software state.
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'certs/Kconfig')
0 files changed, 0 insertions, 0 deletions