Home
last modified time | relevance | path

Searched refs:hfscr (Results 1 – 14 of 14) sorted by relevance

/linux/arch/powerpc/kvm/
H A Dbook3s_hv_tm.c90 if (!(vcpu->arch.hfscr & HFSCR_EBB)) { in kvmhv_p9_tm_emulation()
91 vcpu->arch.hfscr &= ~HFSCR_INTR_CAUSE; in kvmhv_p9_tm_emulation()
92 vcpu->arch.hfscr |= (u64)FSCR_EBB_LG << 56; in kvmhv_p9_tm_emulation()
141 if (!(vcpu->arch.hfscr & HFSCR_TM)) { in kvmhv_p9_tm_emulation()
142 vcpu->arch.hfscr &= ~HFSCR_INTR_CAUSE; in kvmhv_p9_tm_emulation()
143 vcpu->arch.hfscr |= (u64)FSCR_TM_LG << 56; in kvmhv_p9_tm_emulation()
173 if (!(vcpu->arch.hfscr & HFSCR_TM)) { in kvmhv_p9_tm_emulation()
174 vcpu->arch.hfscr &= ~HFSCR_INTR_CAUSE; in kvmhv_p9_tm_emulation()
175 vcpu->arch.hfscr |= (u64)FSCR_TM_LG << 56; in kvmhv_p9_tm_emulation()
213 if (!(vcpu->arch.hfscr & HFSCR_TM)) { in kvmhv_p9_tm_emulation()
[all …]
H A Dbook3s_hv_p9_perf.c87 if (load_pmu || (vcpu->arch.hfscr & HFSCR_PM)) { in switch_pmu_to_guest()
113 vcpu->arch.hfscr |= HFSCR_PM; in switch_pmu_to_guest()
160 } else if (vcpu->arch.hfscr & HFSCR_PM) { in switch_pmu_to_host()
183 vcpu->arch.hfscr &= ~HFSCR_PM; in switch_pmu_to_host()
H A Dbook3s_hv_p9_entry.c22 if (vcpu->arch.hfscr & HFSCR_EBB) { in load_spr_state()
67 if (vcpu->arch.hfscr & HFSCR_EBB) { in store_spr_state()
98 } else if (vcpu->arch.hfscr & HFSCR_TM) { in load_vcpu_state()
132 } else if (vcpu->arch.hfscr & HFSCR_TM) { in store_vcpu_state()
140 vcpu->arch.hfscr &= ~HFSCR_TM; in store_vcpu_state()
193 if (vcpu->arch.hfscr & HFSCR_EBB) { in restore_p9_host_os_sprs()
210 vcpu->arch.hfscr &= ~HFSCR_EBB; in restore_p9_host_os_sprs()
509 (vcpu->arch.hfscr & HFSCR_TM)) in kvmppc_msr_hard_disable_set_facilities()
642 mtspr(SPRN_HFSCR, vcpu->arch.hfscr); in kvmhv_vcpu_entry_p9()
791 vcpu->arch.hfscr = mfspr(SPRN_HFSCR); in kvmhv_vcpu_entry_p9()
H A Dbook3s_hv_tm_builtin.c56 if (!(vcpu->arch.hfscr & HFSCR_EBB) || in kvmhv_p9_tm_emulation_early()
95 if (!(vcpu->arch.hfscr & HFSCR_TM) || !(msr & MSR_TM)) in kvmhv_p9_tm_emulation_early()
H A Dbook3s_hv_nested.c36 hr->hfscr = vcpu->arch.hfscr; in kvmhv_save_hv_regs()
76 hr->hfscr = swab64(hr->hfscr); in byteswap_hv_regs()
132 hr->hfscr = ((~HFSCR_INTR_CAUSE & hr->hfscr) | in save_hv_return_state()
133 (HFSCR_INTR_CAUSE & vcpu->arch.hfscr)); in save_hv_return_state()
147 vcpu->arch.hfscr = hr->hfscr; in restore_hv_regs()
174 vcpu->arch.hfscr = hr->hfscr; in kvmhv_restore_hv_return_state()
278 vcpu->arch.hfscr = l2_hv->hfscr & (HFSCR_INTR_CAUSE | vcpu->arch.hfscr_permitted); in load_l2_hv_regs()
366 vcpu->arch.nested_hfscr = l2_hv.hfscr; in kvmhv_enter_nested_guest()
H A Dbook3s_hv.h105 KVMPPC_BOOK3S_HV_VCPU_ACCESSOR(hfscr, 64, KVMPPC_GSID_HFSCR)
H A Dbook3s_hv_nestedv2.c161 rc = kvmppc_gse_put_u64(gsb, iden, vcpu->arch.hfscr); in gs_msg_ops_vcpu_fill_info()
422 vcpu->arch.hfscr = kvmppc_gse_get_u64(gse); in gs_msg_ops_vcpu_refresh_info()
/linux/arch/powerpc/kernel/
H A Ddt_cpu_ftrs.c71 u64 hfscr; member
84 mtspr(SPRN_HFSCR, system_registers.hfscr); in __restore_cpu_cpufeatures()
138 u64 hfscr = mfspr(SPRN_HFSCR); in feat_try_enable_unknown() local
139 hfscr |= 1UL << f->hfscr_bit_nr; in feat_try_enable_unknown()
140 mtspr(SPRN_HFSCR, hfscr); in feat_try_enable_unknown()
175 u64 hfscr = mfspr(SPRN_HFSCR); in feat_enable() local
176 hfscr |= 1UL << f->hfscr_bit_nr; in feat_enable()
177 mtspr(SPRN_HFSCR, hfscr); in feat_enable()
348 u64 hfscr = mfspr(SPRN_HFSCR); in hfscr_pmu_enable() local
349 hfscr |= PPC_BIT(60); in hfscr_pmu_enable()
[all …]
H A Dcpu_setup_power.c91 u64 hfscr; in init_HFSCR() local
93 hfscr = mfspr(SPRN_HFSCR); in init_HFSCR()
94 hfscr |= HFSCR_TAR|HFSCR_TM|HFSCR_BHRB|HFSCR_PM|HFSCR_DSCR|\ in init_HFSCR()
96 mtspr(SPRN_HFSCR, hfscr); in init_HFSCR()
H A Dasm-offsets.c484 OFFSET(VCPU_HFSCR, kvm_vcpu, arch.hfscr); in main()
/linux/arch/powerpc/platforms/powernv/
H A Didle.c300 u64 hfscr; member
351 sprs.hfscr = mfspr(SPRN_HFSCR); in power7_idle_insn()
485 mtspr(SPRN_HFSCR, sprs.hfscr); in power7_idle_insn()
588 u64 hfscr; member
665 sprs.hfscr = mfspr(SPRN_HFSCR); in power9_idle_stop()
781 mtspr(SPRN_HFSCR, sprs.hfscr); in power9_idle_stop()
/linux/Documentation/devicetree/bindings/powerpc/
H A Dibm,powerpc-cpu-features.txt125 If the HFSCR bit is set, then the hfscr-bit-nr property will exist and
148 - hfscr-bit-nr
/linux/arch/powerpc/include/asm/
H A Dhvcall.h623 u64 hfscr; member
H A Dkvm_host.h625 ulong hfscr; member