Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <benh@kernel.crashing.org>
Signed-off-by: Alexander Graf <agraf@suse.de>

authored by

Benjamin Herrenschmidt and committed by
Alexander Graf
1dee7a3d 85b70591

+1
+1
arch/powerpc/kvm/book3s_pr_papr.c
··· 241 241 case H_PUT_TCE: 242 242 return kvmppc_h_pr_put_tce(vcpu); 243 243 case H_CEDE: 244 + vcpu->arch.shared->msr |= MSR_EE; 244 245 kvm_vcpu_block(vcpu); 245 246 clear_bit(KVM_REQ_UNHALT, &vcpu->requests); 246 247 vcpu->stat.halt_wakeup++;