KVM: Get rid of KVM_REQ_KICK
authorAvi Kivity <avi@redhat.com>
Mon, 3 May 2010 13:54:48 +0000 (16:54 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:37 +0000 (10:35 +0300)
commitd94e1dc9af60e3431a586c3edfbe42d8a0d3932b
treec9ae8e5e69241d51898ab657d0ff48004b5bd4dc
parent54b8486f469475d6c8e8aec917b91239a54eb8c8
KVM: Get rid of KVM_REQ_KICK

KVM_REQ_KICK poisons vcpu->requests by having a bit set during normal
operation.  This causes the fast path check for a clear vcpu->requests
to fail all the time, triggering tons of atomic operations.

Fix by replacing KVM_REQ_KICK with a vcpu->guest_mode atomic.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c
include/linux/kvm_host.h