Searched refs:hfscr (Results 1 – 13 of 13) sorted by relevance
/linux-6.3-rc2/arch/powerpc/kvm/ |
A D | book3s_hv_tm.c | 90 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 D | book3s_hv_p9_perf.c | 87 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()
|
A D | book3s_hv_p9_entry.c | 22 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()
|
A D | book3s_hv_tm_builtin.c | 56 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 D | book3s_hv_nested.c | 36 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()
|
A D | book3s_hv.c | 1541 vcpu->arch.hfscr |= HFSCR_PM; in kvmppc_pmu_unavailable() 1551 vcpu->arch.hfscr |= HFSCR_EBB; in kvmppc_ebb_unavailable() 1561 vcpu->arch.hfscr |= HFSCR_TM; in kvmppc_tm_unavailable() 1853 u64 cause = vcpu->arch.hfscr >> 56; in kvmppc_handle_exit_hv() 1987 u64 cause = vcpu->arch.hfscr >> 56; in kvmppc_handle_nested_exit() 2929 vcpu->arch.hfscr &= mfspr(SPRN_HFSCR); in kvmppc_core_vcpu_create_hv() 2932 vcpu->arch.hfscr |= HFSCR_TM; in kvmppc_core_vcpu_create_hv() 2936 vcpu->arch.hfscr |= HFSCR_TM; in kvmppc_core_vcpu_create_hv() 2938 vcpu->arch.hfscr_permitted = vcpu->arch.hfscr; in kvmppc_core_vcpu_create_hv() 2943 vcpu->arch.hfscr &= ~(HFSCR_PM | HFSCR_EBB | HFSCR_TM); in kvmppc_core_vcpu_create_hv() [all …]
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | dt_cpu_ftrs.c | 71 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 …]
|
A D | cpu_setup_power.c | 91 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 D | asm-offsets.c | 481 OFFSET(VCPU_HFSCR, kvm_vcpu, arch.hfscr); in main()
|
/linux-6.3-rc2/arch/powerpc/platforms/powernv/ |
A D | idle.c | 298 u64 hfscr; member 349 sprs.hfscr = mfspr(SPRN_HFSCR); in power7_idle_insn() 483 mtspr(SPRN_HFSCR, sprs.hfscr); in power7_idle_insn() 586 u64 hfscr; member 663 sprs.hfscr = mfspr(SPRN_HFSCR); in power9_idle_stop() 779 mtspr(SPRN_HFSCR, sprs.hfscr); in power9_idle_stop()
|
/linux-6.3-rc2/Documentation/devicetree/bindings/powerpc/ |
A D | ibm,powerpc-cpu-features.txt | 125 If the HFSCR bit is set, then the hfscr-bit-nr property will exist and 148 - hfscr-bit-nr
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | hvcall.h | 593 u64 hfscr; member
|
A D | kvm_host.h | 606 ulong hfscr; member
|
Completed in 35 milliseconds