projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86bbc1e
)
KVM: x86: really disarm lapic timer when clearing TMICT
author
Radim Krčmář
<
[email protected]
>
Fri, 6 Oct 2017 17:25:54 +0000
(19:25 +0200)
committer
Paolo Bonzini
<
[email protected]
>
Thu, 12 Oct 2017 12:01:54 +0000
(14:01 +0200)
preemption timer only looks at tscdeadline and could inject already
disarmed timer.
Signed-off-by: Radim Krčmář <
[email protected]
>
Reviewed-by: Wanpeng Li <
[email protected]
>
Signed-off-by: Paolo Bonzini <
[email protected]
>
arch/x86/kvm/lapic.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/lapic.c
b/arch/x86/kvm/lapic.c
index 39c1ae11ce1d98c86d0fc798c2c7ec49781bae45..96ade848ae0b660c3fd534e5884ca58f2f277d2d 100644
(file)
--- a/
arch/x86/kvm/lapic.c
+++ b/
arch/x86/kvm/lapic.c
@@
-1489,8
+1489,10
@@
static bool set_target_expiration(struct kvm_lapic *apic)
apic->lapic_timer.period = (u64)kvm_lapic_get_reg(apic, APIC_TMICT)
* APIC_BUS_CYCLE_NS * apic->divide_count;
- if (!apic->lapic_timer.period)
+ if (!apic->lapic_timer.period) {
+ apic->lapic_timer.tscdeadline = 0;
return false;
+ }
limit_periodic_timer_frequency(apic);