aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/booke_emulate.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-06-06 08:31:34 -0400
committerAvi Kivity <avi@redhat.com>2012-06-06 08:31:34 -0400
commit25e531a988ea5a64bd97a72dc9d3c65ad5850120 (patch)
tree5e5b7450fe08e4818a49b4248c9400a08b4cc463 /arch/powerpc/kvm/booke_emulate.c
parent79f702a6d18c75760c68202007265b2310d6f44e (diff)
parentd35b1075afc0172caa44b57b56a2b9b57e06d32e (diff)
Merge branch 'for-upstream' of git://github.com/agraf/linux-2.6 into next
Alex says: "Changes this time include: - Generalize KVM_GUEST support to overall ePAPR code - Fix reset for Book3S HV - Fix machine check deferral when CONFIG_KVM_GUEST=y - Add support for BookE register DECAR" * 'for-upstream' of git://github.com/agraf/linux-2.6: KVM: PPC: Not optimizing MSR_CE and MSR_ME with paravirt. KVM: PPC: booke: Added DECAR support KVM: PPC: Book3S HV: Make the guest hash table size configurable KVM: PPC: Factor out guest epapr initialization Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/booke_emulate.c')
-rw-r--r--arch/powerpc/kvm/booke_emulate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/booke_emulate.c b/arch/powerpc/kvm/booke_emulate.c
index 6c76397f2af4..9eb9809eb13e 100644
--- a/arch/powerpc/kvm/booke_emulate.c
+++ b/arch/powerpc/kvm/booke_emulate.c
@@ -129,6 +129,9 @@ int kvmppc_booke_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val)
129 kvmppc_set_tcr(vcpu, spr_val); 129 kvmppc_set_tcr(vcpu, spr_val);
130 break; 130 break;
131 131
132 case SPRN_DECAR:
133 vcpu->arch.decar = spr_val;
134 break;
132 /* 135 /*
133 * Note: SPRG4-7 are user-readable. 136 * Note: SPRG4-7 are user-readable.
134 * These values are loaded into the real SPRGs when resuming the 137 * These values are loaded into the real SPRGs when resuming the