Lines Matching refs:lpcr
432 vcpu->arch.vcore->lpcr, vcpu->kvm->arch.sdr1, in kvmppc_dump_regs()
1927 unsigned long kvmppc_filter_lpcr_hv(struct kvm *kvm, unsigned long lpcr) in kvmppc_filter_lpcr_hv() argument
1931 lpcr &= ~LPCR_TC; in kvmppc_filter_lpcr_hv()
1935 lpcr &= ~LPCR_AIL; in kvmppc_filter_lpcr_hv()
1936 if ((lpcr & LPCR_AIL) != LPCR_AIL_3) in kvmppc_filter_lpcr_hv()
1937 lpcr &= ~LPCR_AIL; /* LPCR[AIL]=1/2 is disallowed */ in kvmppc_filter_lpcr_hv()
1945 lpcr &= ~LPCR_AIL; in kvmppc_filter_lpcr_hv()
1952 lpcr &= ~LPCR_LD; in kvmppc_filter_lpcr_hv()
1954 return lpcr; in kvmppc_filter_lpcr_hv()
1957 static void verify_lpcr(struct kvm *kvm, unsigned long lpcr) in verify_lpcr() argument
1959 if (lpcr != kvmppc_filter_lpcr_hv(kvm, lpcr)) { in verify_lpcr()
1961 lpcr, kvmppc_filter_lpcr_hv(kvm, lpcr)); in verify_lpcr()
1988 (vc->lpcr & ~mask) | (new_lpcr & mask)); in kvmppc_set_lpcr()
1994 if ((new_lpcr & LPCR_ILE) != (vc->lpcr & LPCR_ILE)) { in kvmppc_set_lpcr()
2008 vc->lpcr = new_lpcr; in kvmppc_set_lpcr()
2166 *val = get_reg_val(id, vcpu->arch.vcore->lpcr); in kvmppc_get_one_reg_hv()
2543 vcore->lpcr = kvm->arch.lpcr; in kvmppc_vcore_create()
3867 unsigned long lpcr) in kvmhv_p9_guest_entry() argument
3956 hvregs.lpcr = lpcr; in kvmhv_p9_guest_entry()
3987 trap = kvmhv_vcpu_entry_p9(vcpu, time_limit, lpcr); in kvmhv_p9_guest_entry()
4017 if (!(lpcr & LPCR_LD)) /* Sign extend if not using large decrementer */ in kvmhv_p9_guest_entry()
4418 unsigned long lpcr) in kvmhv_run_single_vcpu() argument
4485 lpcr |= LPCR_MER; in kvmhv_run_single_vcpu()
4513 trap = kvmhv_p9_guest_entry(vcpu, time_limit, lpcr); in kvmhv_run_single_vcpu()
4682 vcpu->arch.vcore->lpcr); in kvmppc_vcpu_run_hv()
4934 void kvmppc_update_lpcr(struct kvm *kvm, unsigned long lpcr, unsigned long mask) in kvmppc_update_lpcr() argument
4939 if ((kvm->arch.lpcr & mask) == lpcr) in kvmppc_update_lpcr()
4942 kvm->arch.lpcr = (kvm->arch.lpcr & ~mask) | lpcr; in kvmppc_update_lpcr()
4950 vc->lpcr = (vc->lpcr & ~mask) | lpcr; in kvmppc_update_lpcr()
4951 verify_lpcr(kvm, vc->lpcr); in kvmppc_update_lpcr()
4990 unsigned long lpcr = 0, senc; in kvmppc_hv_setup_htab_rma() local
5052 lpcr = senc << (LPCR_VRMASD_SH - 4); in kvmppc_hv_setup_htab_rma()
5053 kvmppc_update_lpcr(kvm, lpcr, LPCR_VRMASD); in kvmppc_hv_setup_htab_rma()
5193 unsigned long lpcr, lpid; in kvmppc_core_init_vm_hv() local
5232 kvm->arch.host_lpcr = lpcr = mfspr(SPRN_LPCR); in kvmppc_core_init_vm_hv()
5233 lpcr &= LPCR_PECE | LPCR_LPES; in kvmppc_core_init_vm_hv()
5235 lpcr = 0; in kvmppc_core_init_vm_hv()
5237 lpcr |= (4UL << LPCR_DPFD_SH) | LPCR_HDICE | in kvmppc_core_init_vm_hv()
5243 lpcr |= LPCR_ONL; in kvmppc_core_init_vm_hv()
5252 lpcr &= ~LPCR_VPM0; in kvmppc_core_init_vm_hv()
5253 lpcr |= LPCR_HVICE | LPCR_HEIC; in kvmppc_core_init_vm_hv()
5260 lpcr |= LPCR_LPES; in kvmppc_core_init_vm_hv()
5269 lpcr &= ~LPCR_VPM1; in kvmppc_core_init_vm_hv()
5270 lpcr |= LPCR_UPRT | LPCR_GTSE | LPCR_HR; in kvmppc_core_init_vm_hv()
5279 verify_lpcr(kvm, lpcr); in kvmppc_core_init_vm_hv()
5280 kvm->arch.lpcr = lpcr; in kvmppc_core_init_vm_hv()
5712 unsigned long lpcr; in kvmhv_configure_mmu() local
5764 lpcr = (cfg->flags & KVM_PPC_MMUV3_GTSE) ? LPCR_GTSE : 0; in kvmhv_configure_mmu()
5765 kvmppc_update_lpcr(kvm, lpcr, LPCR_GTSE); in kvmhv_configure_mmu()