OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
706fb73
)
KVM: PPC: Book3S: PR: Indicate we're out of guest mode
author
Alexander Graf
<agraf@suse.de>
Sun, 12 Aug 2012 09:34:21 +0000
(11:34 +0200)
committer
Alexander Graf
<agraf@suse.de>
Fri, 5 Oct 2012 21:38:44 +0000
(23:38 +0200)
When going out of guest mode, indicate that we are in vcpu->mode. That way
requests from other CPUs don't needlessly need to kick us to process them,
because it'll just happen next time we enter the guest.
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_pr.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kvm/book3s_pr.c
b/arch/powerpc/kvm/book3s_pr.c
index
b4ae11e
..
9430a36
100644
(file)
--- a/
arch/powerpc/kvm/book3s_pr.c
+++ b/
arch/powerpc/kvm/book3s_pr.c
@@
-1152,6
+1152,7
@@
int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
#endif
out:
+ vcpu->mode = OUTSIDE_GUEST_MODE;
preempt_enable();
return ret;
}