Home
last modified time | relevance | path

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

/linux/arch/powerpc/kvm/
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 …]
A Dbook3s_hv_nested.c35 hr->hfscr = vcpu->arch.hfscr; in kvmhv_save_hv_regs()
75 hr->hfscr = swab64(hr->hfscr); in byteswap_hv_regs()
131 hr->hfscr = ((~HFSCR_INTR_CAUSE & hr->hfscr) | in save_hv_return_state()
132 (HFSCR_INTR_CAUSE & vcpu->arch.hfscr)); in save_hv_return_state()
146 vcpu->arch.hfscr = hr->hfscr; in restore_hv_regs()
173 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()
365 l2->hfscr = l2_hv.hfscr; in kvmhv_enter_nested_guest()
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()
A Dbook3s_hv_p9_entry.c263 mtspr(SPRN_HFSCR, vcpu->arch.hfscr); in kvmhv_vcpu_entry_p9()
405 vcpu->arch.hfscr = mfspr(SPRN_HFSCR); in kvmhv_vcpu_entry_p9()
A Dbook3s_hv.c1707 if (((vcpu->arch.hfscr >> 56) == FSCR_MSGP_LG) && in kvmppc_handle_exit_hv()
1825 u64 cause = vcpu->arch.hfscr >> 56; in kvmppc_handle_nested_exit()
1834 (nested->hfscr & (1UL << cause))) { in kvmppc_handle_nested_exit()
2734 vcpu->arch.hfscr = HFSCR_TAR | HFSCR_EBB | HFSCR_PM | HFSCR_BHRB | in kvmppc_core_vcpu_create_hv()
2737 vcpu->arch.hfscr &= mfspr(SPRN_HFSCR); in kvmppc_core_vcpu_create_hv()
2740 vcpu->arch.hfscr |= HFSCR_TM; in kvmppc_core_vcpu_create_hv()
2744 vcpu->arch.hfscr |= HFSCR_TM; in kvmppc_core_vcpu_create_hv()
2746 vcpu->arch.hfscr_permitted = vcpu->arch.hfscr; in kvmppc_core_vcpu_create_hv()
/linux/arch/powerpc/kernel/
A Ddt_cpu_ftrs.c71 u64 hfscr; member
83 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()
341 u64 hfscr = mfspr(SPRN_HFSCR); in hfscr_pmu_enable() local
342 hfscr |= PPC_BIT(60); in hfscr_pmu_enable()
[all …]
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()
A Dasm-offsets.c488 OFFSET(VCPU_HFSCR, kvm_vcpu, arch.hfscr); in main()
/linux/arch/powerpc/platforms/powernv/
A Didle.c299 u64 hfscr; member
350 sprs.hfscr = mfspr(SPRN_HFSCR); in power7_idle_insn()
485 mtspr(SPRN_HFSCR, sprs.hfscr); in power7_idle_insn()
586 u64 hfscr; member
664 sprs.hfscr = mfspr(SPRN_HFSCR); in power9_idle_stop()
781 mtspr(SPRN_HFSCR, sprs.hfscr); in power9_idle_stop()
/linux/Documentation/devicetree/bindings/powerpc/
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/
A Dhvcall.h566 u64 hfscr; member
A Dkvm_book3s_64.h42 u64 hfscr; /* HFSCR that the L1 requested for this nested guest */ member
A Dkvm_host.h594 ulong hfscr; member

Completed in 35 milliseconds