History log of /arch/x86/kvm/timer.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3f2e5260f5a17d37be3e3c83aca2f335b9bf3893 14-Sep-2011 Jan Kiszka <jan.kiszka@siemens.com> KVM: x86: Simplify kvm timer handler

The vcpu reference of a kvm_timer can't become NULL while the timer is
valid, so drop this redundant test. This also makes it pointless to
carry a separate __kvm_timer_fn, fold it into kvm_timer_fn.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
/arch/x86/kvm/timer.c
60063497a95e716c9a689af3be2687d261f115b4 27-Jul-2011 Arun Sharma <asharma@fb.com> atomic: use <linux/atomic.h>

This allows us to move duplicated code in <asm/atomic.h>
(atomic_inc_not_zero() for now) to <linux/atomic.h>

Signed-off-by: Arun Sharma <asharma@fb.com>
Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: David Miller <davem@davemloft.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
/arch/x86/kvm/timer.c
0d2eb44f631d9d0a826efa3156f157477fdaecf4 17-Mar-2011 Lucas De Marchi <lucas.de.marchi@gmail.com> x86: Fix common misspellings

They were generated by 'codespell' and then manually reviewed.

Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: trivial@kernel.org
LKML-Reference: <1300389856-1099-3-git-send-email-lucas.demarchi@profusion.mobi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
/arch/x86/kvm/timer.c
9611c187774f0e20c258c23ced2599c44bd2fef4 06-Oct-2010 Nicolas Kaiser <nikai@nikai.net> KVM: fix typo in copyright notice

Fix typo in copyright notice.

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
/arch/x86/kvm/timer.c
a8eeb04a44dd6dc4c8158953d9bae48849c9a188 09-May-2010 Avi Kivity <avi@redhat.com> KVM: Add mini-API for vcpu->requests

Makes it a little more readable and hackable.

Signed-off-by: Avi Kivity <avi@redhat.com>
/arch/x86/kvm/timer.c
221d059d15f1c8bd070a63fd45cd8d2598af5f99 23-May-2010 Avi Kivity <avi@redhat.com> KVM: Update Red Hat copyrights

Signed-off-by: Avi Kivity <avi@redhat.com>
/arch/x86/kvm/timer.c
041b1359a29b9301bc8baed6efcdbad29f80f6af 23-Mar-2010 Marcelo Tosatti <mtosatti@redhat.com> KVM: x86: document KVM_REQ_PENDING_TIMER usage

Document that KVM_REQ_PENDING_TIMER is implicitly used during guest
entry.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
/arch/x86/kvm/timer.c
681405bfc73a2717ae9b03b2bad465b009106f31 09-Jun-2009 Jan Kiszka <jan.kiszka@siemens.com> KVM: Drop useless atomic test from timer function

The current code tries to optimize the setting of
KVM_REQ_PENDING_TIMER but used atomic_inc_and_test - which always
returns true unless pending had the invalid value of -1 on entry. This
patch drops the test part preserving the original semantic but
expressing it less confusingly.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
/arch/x86/kvm/timer.c
f7104db26ab2bc5f642892774ac8fb0f15400969 09-Jun-2009 Jan Kiszka <jan.kiszka@siemens.com> KVM: Fix racy event propagation in timer

Minor issue that likely had no practical relevance: the kvm timer
function so far incremented the pending counter and then may reset it
again to 1 in case reinjection was disabled. This opened a small racy
window with the corresponding VCPU loop that may have happened to run
on another (real) CPU and already consumed the value.

Fix it by skipping the incrementation in case pending is already > 0.
This opens a different race windows, but may only rarely cause lost
events in case we do not care about them anyway (!reinject).

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
/arch/x86/kvm/timer.c
1ed0ce000a6c20c36ec649e32fc24393ef418ed8 09-Jun-2009 Gleb Natapov <gleb@redhat.com> KVM: Use pointer to vcpu instead of vcpu_id in timer code.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
/arch/x86/kvm/timer.c
d3c7b77d1a6e7a0a27035a7ba723a3455317883e 23-Feb-2009 Marcelo Tosatti <mtosatti@redhat.com> KVM: unify part of generic timer handling

Hide the internals of vcpu awakening / injection from the in-kernel
emulated timers. This makes future changes in this logic easier and
decreases the distance to more generic timer handling.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
/arch/x86/kvm/timer.c