aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2011-08-08 11:22:59 -0400
committerAvi Kivity <avi@redhat.com>2011-09-25 12:52:25 -0400
commitaacf9aa3a7762a878c40fddef6e68262b9f9f383 (patch)
tree85fbc4b9348a5a6eedda6905557954aa2cf3abd0 /arch/powerpc/kvm
parent0254f0742998dc61fcf68a3488e2d93636031263 (diff)
KVM: PPC: Stub emulate CFAR and PURR SPRs
Recent Linux versions use the CFAR and PURR SPRs, but don't really care about their contents (yet). So for now, we can simply return 0 when the guest wants to read them. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r--arch/powerpc/kvm/book3s_emulate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/book3s_emulate.c b/arch/powerpc/kvm/book3s_emulate.c
index bf0ddcd98bcc..0c9dc62532d0 100644
--- a/arch/powerpc/kvm/book3s_emulate.c
+++ b/arch/powerpc/kvm/book3s_emulate.c
@@ -473,6 +473,10 @@ int kvmppc_core_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, int rt)
473 case SPRN_HID5: 473 case SPRN_HID5:
474 kvmppc_set_gpr(vcpu, rt, to_book3s(vcpu)->hid[5]); 474 kvmppc_set_gpr(vcpu, rt, to_book3s(vcpu)->hid[5]);
475 break; 475 break;
476 case SPRN_CFAR:
477 case SPRN_PURR:
478 kvmppc_set_gpr(vcpu, rt, 0);
479 break;
476 case SPRN_GQR0: 480 case SPRN_GQR0:
477 case SPRN_GQR1: 481 case SPRN_GQR1:
478 case SPRN_GQR2: 482 case SPRN_GQR2: