projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1000ff8
)
KVM: No need to kick cpu if not in a guest mode
author
Gleb Natapov
<gleb@redhat.com>
Tue, 7 Jul 2009 12:27:32 +0000
(15:27 +0300)
committer
Avi Kivity
<avi@redhat.com>
Thu, 10 Sep 2009 05:33:11 +0000
(08:33 +0300)
This will save a couple of IPIs.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Acked-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index 95fa45c0f16ef04d26499bcfb6ae07b6bbe37075..e3d9040f2156eeb0d82150783b2674a54e35fc7f 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-3506,6
+3506,7
@@
static int vcpu_enter_guest(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
smp_mb__after_clear_bit();
if (vcpu->requests || need_resched() || signal_pending(current)) {
+ set_bit(KVM_REQ_KICK, &vcpu->requests);
local_irq_enable();
preempt_enable();
r = 1;