aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/book3s_hv.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kvm/book3s_hv.c')
-rw-r--r--arch/powerpc/kvm/book3s_hv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c
index 36eb95cc48ae..2a0e38feec1d 100644
--- a/arch/powerpc/kvm/book3s_hv.c
+++ b/arch/powerpc/kvm/book3s_hv.c
@@ -823,6 +823,9 @@ int kvmppc_get_one_reg(struct kvm_vcpu *vcpu, u64 id, union kvmppc_one_reg *val)
823 case KVM_REG_PPC_LPCR: 823 case KVM_REG_PPC_LPCR:
824 *val = get_reg_val(id, vcpu->arch.vcore->lpcr); 824 *val = get_reg_val(id, vcpu->arch.vcore->lpcr);
825 break; 825 break;
826 case KVM_REG_PPC_PPR:
827 *val = get_reg_val(id, vcpu->arch.ppr);
828 break;
826 default: 829 default:
827 r = -EINVAL; 830 r = -EINVAL;
828 break; 831 break;
@@ -930,6 +933,9 @@ int kvmppc_set_one_reg(struct kvm_vcpu *vcpu, u64 id, union kvmppc_one_reg *val)
930 case KVM_REG_PPC_LPCR: 933 case KVM_REG_PPC_LPCR:
931 kvmppc_set_lpcr(vcpu, set_reg_val(id, *val)); 934 kvmppc_set_lpcr(vcpu, set_reg_val(id, *val));
932 break; 935 break;
936 case KVM_REG_PPC_PPR:
937 vcpu->arch.ppr = set_reg_val(id, *val);
938 break;
933 default: 939 default:
934 r = -EINVAL; 940 r = -EINVAL;
935 break; 941 break;