From: Benjamin Herrenschmidt Date: Mon, 9 Jul 2012 22:48:17 +0000 (+0000) Subject: powerpc/kvm: Fix "PR" KVM implementation of H_CEDE X-Git-Tag: v3.5-rc7~20^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dee7a3dc89fe8c7671aee012be8981a42aad45f;p=platform%2Fkernel%2Flinux-stable.git powerpc/kvm: Fix "PR" KVM implementation of H_CEDE 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 Signed-off-by: Alexander Graf --- diff --git a/arch/powerpc/kvm/book3s_pr_papr.c b/arch/powerpc/kvm/book3s_pr_papr.c index 3ff9013..ee02b30 100644 --- 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++;