[9/9] powerpc/kvm: Fix "PR" KVM implementation of H_CEDE

Submitted by Alexander Graf on July 11, 2012, 12:56 a.m.


Message ID 1341968204-6756-10-git-send-email-agraf@suse.de
State New
Headers show

Commit Message

Alexander Graf July 11, 2012, 12:56 a.m.
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>

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 <benh@kernel.crashing.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
 arch/powerpc/kvm/book3s_pr_papr.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

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;
 		clear_bit(KVM_REQ_UNHALT, &vcpu->requests);