Home
last modified time | relevance | path

Searched refs:host_os_sprs (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/arch/powerpc/kvm/
Dbook3s_hv_p9_perf.c36 struct p9_host_os_sprs *host_os_sprs) in switch_pmu_to_guest() argument
49 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 …]
Dbook3s_hv.h34 struct p9_host_os_sprs *host_os_sprs);
36 void save_p9_host_os_sprs(struct p9_host_os_sprs *host_os_sprs);
38 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);
Dbook3s_hv_p9_entry.c11 struct p9_host_os_sprs *host_os_sprs) in load_spr_state() argument
34 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() argument
106 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() argument
150 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() argument
171 if (host_os_sprs->iamr != vcpu->arch.iamr) in restore_p9_host_os_sprs()
[all …]
Dbook3s_hv.c4025 struct p9_host_os_sprs host_os_sprs; in kvmhv_vcpu_entry_p9_nested() local
4031 save_p9_host_os_sprs(&host_os_sprs); in kvmhv_vcpu_entry_p9_nested()
4045 if (unlikely(load_vcpu_state(vcpu, &host_os_sprs))) in kvmhv_vcpu_entry_p9_nested()
4083 switch_pmu_to_guest(vcpu, &host_os_sprs); in kvmhv_vcpu_entry_p9_nested()
4089 switch_pmu_to_host(vcpu, &host_os_sprs); in kvmhv_vcpu_entry_p9_nested()
4105 restore_p9_host_os_sprs(vcpu, &host_os_sprs); in kvmhv_vcpu_entry_p9_nested()