diff options
author | Andrew Jones <drjones@redhat.com> | 2017-06-04 14:44:01 +0200 |
---|---|---|
committer | Christoffer Dall <cdall@linaro.org> | 2017-06-04 16:53:57 +0200 |
commit | 1b6502e5bc5ef16179bcd812dfa43d8bbb5689d4 (patch) | |
tree | 996cc1f4978462f4ddf95a4b4fc57aa1eb8a1187 | |
parent | b7484931e4a8b06fe734ac2b5134f09204bad11a (diff) | |
download | linux-1b6502e5bc5ef16179bcd812dfa43d8bbb5689d4.tar.gz linux-1b6502e5bc5ef16179bcd812dfa43d8bbb5689d4.tar.bz2 linux-1b6502e5bc5ef16179bcd812dfa43d8bbb5689d4.zip |
KVM: arm/arm64: timer: remove request-less vcpu kick
The timer work is only scheduled for a VCPU when that VCPU is
blocked. This means we only need to wake it up, not kick (IPI)
it. While calling kvm_vcpu_kick() would just do the wake up,
and not kick, anyway, let's change this to avoid request-less
vcpu kicks, as they're generally not a good idea (see
"Request-less VCPU Kicks" in
Documentation/virtual/kvm/vcpu-requests.rst)
Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
-rw-r--r-- | virt/kvm/arm/arch_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/arm/arch_timer.c b/virt/kvm/arm/arch_timer.c index 5976609ef27c..7933b1f8f7b7 100644 --- a/virt/kvm/arm/arch_timer.c +++ b/virt/kvm/arm/arch_timer.c @@ -95,7 +95,7 @@ static void kvm_timer_inject_irq_work(struct work_struct *work) * If the vcpu is blocked we want to wake it up so that it will see * the timer has expired when entering the guest. */ - kvm_vcpu_kick(vcpu); + kvm_vcpu_wake_up(vcpu); } static u64 kvm_timer_compute_delta(struct arch_timer_context *timer_ctx) |