Searched refs:host_os_sprs (Results 1 – 4 of 4) sorted by relevance
36 struct p9_host_os_sprs *host_os_sprs) in switch_pmu_to_guest() argument49 host_os_sprs->mmcr0 = mfspr(SPRN_MMCR0); in switch_pmu_to_guest()50 host_os_sprs->mmcra = mfspr(SPRN_MMCRA); in switch_pmu_to_guest()52 freeze_pmu(host_os_sprs->mmcr0, host_os_sprs->mmcra); in switch_pmu_to_guest()54 host_os_sprs->pmc1 = mfspr(SPRN_PMC1); in switch_pmu_to_guest()55 host_os_sprs->pmc2 = mfspr(SPRN_PMC2); in switch_pmu_to_guest()56 host_os_sprs->pmc3 = mfspr(SPRN_PMC3); in switch_pmu_to_guest()57 host_os_sprs->pmc4 = mfspr(SPRN_PMC4); in switch_pmu_to_guest()58 host_os_sprs->pmc5 = mfspr(SPRN_PMC5); in switch_pmu_to_guest()59 host_os_sprs->pmc6 = mfspr(SPRN_PMC6); in switch_pmu_to_guest()[all …]
11 struct p9_host_os_sprs *host_os_sprs) in load_spr_state() argument34 if (host_os_sprs->iamr != vcpu->arch.iamr) in load_spr_state()36 if (host_os_sprs->amr != vcpu->arch.amr) in load_spr_state()87 struct p9_host_os_sprs *host_os_sprs) in load_vcpu_state() argument106 load_spr_state(vcpu, host_os_sprs); in load_vcpu_state()148 void save_p9_host_os_sprs(struct p9_host_os_sprs *host_os_sprs) in save_p9_host_os_sprs() argument150 host_os_sprs->iamr = mfspr(SPRN_IAMR); in save_p9_host_os_sprs()151 host_os_sprs->amr = mfspr(SPRN_AMR); in save_p9_host_os_sprs()157 struct p9_host_os_sprs *host_os_sprs) in restore_p9_host_os_sprs() argument171 if (host_os_sprs->iamr != vcpu->arch.iamr) in restore_p9_host_os_sprs()[all …]
36 struct p9_host_os_sprs *host_os_sprs);38 void save_p9_host_os_sprs(struct p9_host_os_sprs *host_os_sprs);40 struct p9_host_os_sprs *host_os_sprs);42 struct p9_host_os_sprs *host_os_sprs);44 struct p9_host_os_sprs *host_os_sprs);
4272 struct p9_host_os_sprs host_os_sprs; in kvmhv_vcpu_entry_p9_nested() local4278 save_p9_host_os_sprs(&host_os_sprs); in kvmhv_vcpu_entry_p9_nested()4292 if (unlikely(load_vcpu_state(vcpu, &host_os_sprs))) in kvmhv_vcpu_entry_p9_nested()4330 switch_pmu_to_guest(vcpu, &host_os_sprs); in kvmhv_vcpu_entry_p9_nested()4336 switch_pmu_to_host(vcpu, &host_os_sprs); in kvmhv_vcpu_entry_p9_nested()4352 restore_p9_host_os_sprs(vcpu, &host_os_sprs); in kvmhv_vcpu_entry_p9_nested()