projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85b7059
)
powerpc/kvm: Fix "PR" KVM implementation of H_CEDE
author
Benjamin Herrenschmidt
<
[email protected]
>
Mon, 9 Jul 2012 22:48:17 +0000
(22:48 +0000)
committer
Alexander Graf
<
[email protected]
>
Wed, 11 Jul 2012 15:36:38 +0000
(17:36 +0200)
H_CEDE should enable the vcpu's MSR:EE bit. It does on "HV" KVM (it's
burried in the assembly code though) and as far as I can tell, qemu
does it as well.
Signed-off-by: Benjamin Herrenschmidt <
[email protected]
>
Signed-off-by: Alexander Graf <
[email protected]
>
arch/powerpc/kvm/book3s_pr_papr.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kvm/book3s_pr_papr.c
b/arch/powerpc/kvm/book3s_pr_papr.c
index 3ff9013d6e7914e59f2919f5ee5bf685ad7d7797..ee02b30878ed4bec733af6cbd9aa152eefe22d0f 100644
(file)
--- a/
arch/powerpc/kvm/book3s_pr_papr.c
+++ b/
arch/powerpc/kvm/book3s_pr_papr.c
@@
-241,6
+241,7
@@
int kvmppc_h_pr(struct kvm_vcpu *vcpu, unsigned long cmd)
case H_PUT_TCE:
return kvmppc_h_pr_put_tce(vcpu);
case H_CEDE:
+ vcpu->arch.shared->msr |= MSR_EE;
kvm_vcpu_block(vcpu);
clear_bit(KVM_REQ_UNHALT, &vcpu->requests);
vcpu->stat.halt_wakeup++;