diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2008-06-12 00:52:53 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-07-20 11:42:32 +0200 |
commit | 622395a9e63bf87a16faecf555ed02375cbae5b7 (patch) | |
tree | c4a8082660a4e4bf8f687a33921d292ae35f6394 /kernel | |
parent | KVM: Add coalesced MMIO support (ia64 part) (diff) | |
download | linux-622395a9e63bf87a16faecf555ed02375cbae5b7.tar.xz linux-622395a9e63bf87a16faecf555ed02375cbae5b7.zip |
KVM: only abort guest entry if timer count goes from 0->1
Only abort guest entry if the timer count went from 0->1, since for 1->2
or larger the bit will either be set already or a timer irq will have
been injected.
Using atomic_inc_and_test() for it also introduces an SMP barrier
to the LAPIC version (thought it was unecessary because of timer
migration, but guest can be scheduled to a different pCPU between exit
and kvm_vcpu_block(), so there is the possibility for a race).
Noticed by Avi.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions