/openbmc/linux/arch/powerpc/kernel/ |
H A D | cpu_setup_power.c | 22 if (msr & MSR_HV) in init_hvmode_206() 156 if (!(msr & MSR_HV)) in __restore_cpu_power7() 192 if (!(msr & MSR_HV)) in __restore_cpu_power8() 231 if (!(msr & MSR_HV)) in __restore_cpu_power9() 276 if (!(msr & MSR_HV)) in __restore_cpu_power10()
|
H A D | paca.c | 232 if (mfmsr() & MSR_HV) in setup_paca()
|
H A D | dt_cpu_ftrs.c | 119 hv_mode = !!(mfmsr() & MSR_HV); in cpufeatures_setup_cpu() 934 if (!(mfmsr() & MSR_HV)) { in process_cpufeatures_node()
|
H A D | setup_64.c | 372 if (IS_ENABLED(CONFIG_PPC_BOOK3S_64) && (mfmsr() & MSR_HV)) in early_setup()
|
H A D | traps.c | 405 if (!(regs->msr & MSR_HV)) in hv_nmi_check_nonrecoverable()
|
H A D | process.c | 1471 {MSR_HV, "HV"},
|
/openbmc/linux/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
H A D | mmcr2_fcs_fch_test.c | 23 is_hv = !!(uctx->uc_mcontext.gp_regs[PT_MSR] & MSR_HV); in sig_usr2_handler()
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | reg.h | 71 #define MSR_HV __MASK(MSR_HV_LG) /* Hypervisor state */ macro 76 #define MSR_HV 0 macro 134 #define __MSR (MSR_ME | MSR_RI | MSR_IR | MSR_DR | MSR_HV) 137 #define MSR_IDLE (MSR_ME | MSR_SF | MSR_HV) 140 #define MSR_IDLE (MSR_ME | MSR_SF | MSR_HV | MSR_LE)
|
H A D | kvm_book3s_64.h | 584 msr &= ~MSR_HV; in sanitize_msr()
|
/openbmc/linux/drivers/tty/hvc/ |
H A D | hvc_vio.c | 442 if (mfmsr() & MSR_HV) in udbg_init_debug_lpar() 459 if (mfmsr() & MSR_HV) in udbg_init_debug_lpar_hvsi()
|
/openbmc/linux/tools/testing/selftests/powerpc/include/ |
H A D | reg.h | 98 #define MSR_HV (1ul << 60) /* Hypervisor state */ macro
|
/openbmc/qemu/target/ppc/ |
H A D | helper_regs.c | 68 hv = !!(env->msr & (1ull << MSR_HV)); in hreg_check_bhrb_enable() 188 if (!env->has_hv_mode || (msr & (1ull << MSR_HV))) { in hreg_compute_hflags_value() 227 dmmu_idx |= msr & (1ull << MSR_HV) ? 4 : 0; in hreg_compute_hflags_value()
|
H A D | cpu.h | 426 #define MSR_HV PPC_BIT_NR(3) /* hypervisor state hflags */ macro 471 FIELD(MSR, HV, MSR_HV, 1) 649 #define MSR_HVB (1ULL << MSR_HV)
|
H A D | excp_helper.c | 3241 !(env->msr & ((target_ulong)1 << MSR_HV))); in ppc_cpu_debug_check_breakpoint() 3244 (env->msr & ((target_ulong)1 << MSR_HV))); in ppc_cpu_debug_check_breakpoint() 3270 } else if ((env->msr & ((target_ulong)1 << MSR_HV)) && !hv) { in ppc_cpu_debug_check_watchpoint()
|
H A D | cpu_init.c | 6347 (1ull << MSR_HV) | in POWERPC_FAMILY() 6541 (1ull << MSR_HV) | in POWERPC_FAMILY() 6722 (1ull << MSR_HV) | in POWERPC_FAMILY()
|
/openbmc/linux/arch/powerpc/kvm/ |
H A D | book3s_emulate.c | 148 if (kvmppc_get_msr(vcpu) & MSR_HV) in kvmppc_emulate_treclaim() 223 if (guest_msr & MSR_HV) in kvmppc_emulate_tabort() 509 if (kvmppc_get_msr(vcpu) & MSR_HV) in kvmppc_core_emulate_op_pr() 752 (mfmsr() & MSR_HV)) in kvmppc_core_emulate_mtspr_pr()
|
H A D | book3s_hv_builtin.c | 506 msr = (msr | MSR_ME) & ~MSR_HV; in kvmppc_set_msr_hv()
|
H A D | book3s_hv_p9_entry.c | 558 WARN_ON_ONCE(vcpu->arch.shregs.msr & MSR_HV); in kvmhv_vcpu_entry_p9() 645 mtspr(SPRN_HSRR1, (vcpu->arch.shregs.msr & ~MSR_HV) | MSR_ME); in kvmhv_vcpu_entry_p9()
|
H A D | book3s_pr.c | 249 smsr |= MSR_HV; in kvmppc_recalc_shadow_msr() 478 msr = (msr & ~MSR_HV) | MSR_ME; in kvmppc_set_msr_pr() 584 if (vcpu->arch.mmu.is_dcbz32(vcpu) && (mfmsr() & MSR_HV) && in kvmppc_set_pvr_pr()
|
H A D | book3s_hv_nested.c | 370 vcpu->arch.shregs.msr = (vcpu->arch.regs.msr | MSR_ME) & ~MSR_HV; in kvmhv_enter_nested_guest()
|
/openbmc/linux/arch/powerpc/mm/ |
H A D | init_64.c | 623 bool hvmode = !!(mfmsr() & MSR_HV); in mmu_early_init_devtree()
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | ras.c | 497 MSR_ILE|MSR_HV|MSR_SF)) == (MSR_DR|MSR_SF)) { in pSeries_system_reset_exception()
|
/openbmc/linux/arch/powerpc/perf/ |
H A D | core-book3s.c | 261 if ((regs->msr & MSR_HV) && freeze_events_kernel != MMCR0_FCHV) in perf_flags_from_msr() 2548 #ifdef MSR_HV in register_power_pmu() 2552 if (mfmsr() & MSR_HV) in register_power_pmu()
|
/openbmc/linux/arch/powerpc/xmon/ |
H A D | xmon.c | 2031 if (!(mfmsr() & MSR_HV)) in dump_206_sprs() 2082 if (!(msr & MSR_HV)) in dump_207_sprs() 2100 bool hv = mfmsr() & MSR_HV; in dump_300_sprs()
|
/openbmc/linux/drivers/misc/cxl/ |
H A D | cxl.h | 200 #define CXL_PSL_SR_An_HV MSR_HV /* Hypervisor, GA1: 0 */
|