]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a395b7699d79ef09b50029dfc941650be3e3c19
treec9ae8e5e69241d51898ab657d0ff48004b5bd4dc
parent0f9461bd339fbf4d28b4100fa8d527c662ac4795
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