diff options
Diffstat (limited to 'arch/powerpc/kvm/e500_tlb.c')
-rw-r--r-- | arch/powerpc/kvm/e500_tlb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c index 56ac4523857d..b18fe353397d 100644 --- a/arch/powerpc/kvm/e500_tlb.c +++ b/arch/powerpc/kvm/e500_tlb.c | |||
@@ -675,6 +675,14 @@ int kvmppc_e500_tlb_search(struct kvm_vcpu *vcpu, | |||
675 | return -1; | 675 | return -1; |
676 | } | 676 | } |
677 | 677 | ||
678 | void kvmppc_set_pid(struct kvm_vcpu *vcpu, u32 pid) | ||
679 | { | ||
680 | struct kvmppc_vcpu_e500 *vcpu_e500 = to_e500(vcpu); | ||
681 | |||
682 | vcpu_e500->pid[0] = vcpu->arch.shadow_pid = | ||
683 | vcpu->arch.pid = pid; | ||
684 | } | ||
685 | |||
678 | void kvmppc_e500_tlb_setup(struct kvmppc_vcpu_e500 *vcpu_e500) | 686 | void kvmppc_e500_tlb_setup(struct kvmppc_vcpu_e500 *vcpu_e500) |
679 | { | 687 | { |
680 | struct tlbe *tlbe; | 688 | struct tlbe *tlbe; |