Home
last modified time | relevance | path

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

/openbmc/qemu/target/ppc/
H A Dmmu-hash64.c516 if (cpu->vhyp) { in ppc_hash64_hpt_base()
536 if (cpu->vhyp) { in ppc_hash64_hpt_mask()
537 return cpu->vhyp_class->hpt_mask(cpu->vhyp); in ppc_hash64_hpt_mask()
560 if (cpu->vhyp) { in ppc_hash64_map_hptes()
561 return cpu->vhyp_class->map_hptes(cpu->vhyp, ptex, n); in ppc_hash64_map_hptes()
580 if (cpu->vhyp) { in ppc_hash64_unmap_hptes()
869 if (cpu->vhyp) { in ppc_hash64_set_r()
870 cpu->vhyp_class->hpte_set_r(cpu->vhyp, ptex, pte1); in ppc_hash64_set_r()
884 if (cpu->vhyp) { in ppc_hash64_set_c()
885 cpu->vhyp_class->hpte_set_c(cpu->vhyp, ptex, pte1); in ppc_hash64_set_c()
[all …]
H A Dmmu-radix64.c505 if (cpu->vhyp) { in vhyp_flat_addressing()
690 assert(!(mmuidx_hv(mmu_idx) && cpu->vhyp)); in ppc_radix64_xlate_impl()
729 if (cpu->vhyp) { in ppc_radix64_xlate_impl()
730 if (!cpu->vhyp_class->get_pate(cpu->vhyp, cpu, lpid, &pate)) { in ppc_radix64_xlate_impl()
H A Dcpu.h1449 PPCVirtualHypervisor *vhyp; member
1538 void (*hypercall)(PPCVirtualHypervisor *vhyp, PowerPCCPU *cpu);
1539 hwaddr (*hpt_mask)(PPCVirtualHypervisor *vhyp);
1540 const ppc_hash_pte64_t *(*map_hptes)(PPCVirtualHypervisor *vhyp,
1542 void (*unmap_hptes)(PPCVirtualHypervisor *vhyp,
1545 void (*hpte_set_c)(PPCVirtualHypervisor *vhyp, hwaddr ptex, uint64_t pte1);
1547 bool (*get_pate)(PPCVirtualHypervisor *vhyp, PowerPCCPU *cpu,
1549 target_ulong (*encode_hpt_for_kvm_pr)(PPCVirtualHypervisor *vhyp);
1550 void (*cpu_exec_enter)(PPCVirtualHypervisor *vhyp, PowerPCCPU *cpu);
1551 void (*cpu_exec_exit)(PPCVirtualHypervisor *vhyp, PowerPCCPU *cpu);
[all …]
H A Dexcp_helper.c815 if (lev == 1 && cpu->vhyp) { in powerpc_excp_7xx()
833 if (lev == 1 && cpu->vhyp) { in powerpc_excp_7xx()
834 cpu->vhyp_class->hypercall(cpu->vhyp, cpu); in powerpc_excp_7xx()
965 if (lev == 1 && cpu->vhyp) { in powerpc_excp_74xx()
983 if (lev == 1 && cpu->vhyp) { in powerpc_excp_74xx()
984 cpu->vhyp_class->hypercall(cpu->vhyp, cpu); in powerpc_excp_74xx()
1219 if (cpu->vhyp) { in books_vhyp_promotes_external_to_hvirt()
1232 if (cpu->vhyp) { in books_vhyp_handles_hcall()
1246 if (cpu->vhyp) { in books_vhyp_handles_hv_excp()
1459 if (lev == 1 && cpu->vhyp) { in powerpc_excp_books()
[all …]
H A Dcompat.c148 g_assert(cpu->vhyp); in ppc_check_compat()
H A Dmachine.c318 if (!cpu->vhyp) { in cpu_post_load()
678 assert(!(cpu->compat_pvr && !cpu->vhyp)); in compat_needed()
H A Dmisc_helper.c182 assert(!cpu->vhyp); in helper_store_ptcr()
H A Dcpu_init.c6769 void cpu_ppc_set_vhyp(PowerPCCPU *cpu, PPCVirtualHypervisor *vhyp) in cpu_ppc_set_vhyp() argument
6773 cpu->vhyp = vhyp; in cpu_ppc_set_vhyp()
6774 cpu->vhyp_class = PPC_VIRTUAL_HYPERVISOR_GET_CLASS(vhyp); in cpu_ppc_set_vhyp()
7368 if (cpu->vhyp) { in ppc_cpu_exec_enter()
7369 cpu->vhyp_class->cpu_exec_enter(cpu->vhyp, cpu); in ppc_cpu_exec_enter()
7377 if (cpu->vhyp) { in ppc_cpu_exec_exit()
7378 cpu->vhyp_class->cpu_exec_exit(cpu->vhyp, cpu); in ppc_cpu_exec_exit()
H A Dkvm.c869 if (cpu->vhyp) { in kvmppc_put_books_sregs()
870 sregs.u.s.sdr1 = cpu->vhyp_class->encode_hpt_for_kvm_pr(cpu->vhyp); in kvmppc_put_books_sregs()
1167 if (!cpu->vhyp) { in kvmppc_get_books_sregs()
H A Dmmu_common.c44 assert(!cpu->env.has_hv_mode || !cpu->vhyp); in ppc_store_sdr1()
/openbmc/qemu/hw/ppc/
H A Dpegasos2.c402 pm->cpu->vhyp = PPC_VIRTUAL_HYPERVISOR(machine); in pegasos2_machine_reset()
403 pm->cpu->vhyp_class = PPC_VIRTUAL_HYPERVISOR_GET_CLASS(pm->cpu->vhyp); in pegasos2_machine_reset()
525 static void pegasos2_hypercall(PPCVirtualHypervisor *vhyp, PowerPCCPU *cpu) in pegasos2_hypercall() argument
527 Pegasos2MachineState *pm = PEGASOS2_MACHINE(vhyp); in pegasos2_hypercall()
549 static void vhyp_nop(PPCVirtualHypervisor *vhyp, PowerPCCPU *cpu) in vhyp_nop() argument
553 static target_ulong vhyp_encode_hpt_for_kvm_pr(PPCVirtualHypervisor *vhyp) in vhyp_encode_hpt_for_kvm_pr() argument
H A Dspapr.c1373 static void emulate_spapr_hypercall(PPCVirtualHypervisor *vhyp, in emulate_spapr_hypercall() argument
1440 SpaprMachineState *spapr = SPAPR_MACHINE(vhyp); in spapr_get_pate()
1494 static hwaddr spapr_hpt_mask(PPCVirtualHypervisor *vhyp) in spapr_hpt_mask() argument
1496 SpaprMachineState *spapr = SPAPR_MACHINE(vhyp); in spapr_hpt_mask()
1503 SpaprMachineState *spapr = SPAPR_MACHINE(vhyp); in spapr_encode_hpt_for_kvm_pr()
1517 SpaprMachineState *spapr = SPAPR_MACHINE(vhyp); in spapr_map_hptes()
1536 static void spapr_unmap_hptes(PPCVirtualHypervisor *vhyp, in spapr_unmap_hptes() argument
1540 SpaprMachineState *spapr = SPAPR_MACHINE(vhyp); in spapr_unmap_hptes()
1552 SpaprMachineState *spapr = SPAPR_MACHINE(cpu->vhyp); in spapr_store_hpte()
1584 SpaprMachineState *spapr = SPAPR_MACHINE(vhyp); in spapr_hpte_set_c()
[all …]
H A Dppc.c1102 if (env->has_hv_mode && !cpu->vhyp) { in cpu_ppc_tb_init()