Home
last modified time | relevance | path

Searched refs:hptes (Results 1 – 8 of 8) sorted by relevance

/openbmc/qemu/hw/ppc/
H A Dspapr_vhyp_mmu.c29 const ppc_hash_pte64_t *hptes; in h_enter() local
68 hptes = ppc_hash64_map_hptes(cpu, ptex, HPTES_PER_GROUP); in h_enter()
70 if (!(ppc_hash64_hpte0(cpu, hptes, slot) & HPTE64_V_VALID)) { in h_enter()
74 ppc_hash64_unmap_hptes(cpu, hptes, ptex, HPTES_PER_GROUP); in h_enter()
79 hptes = ppc_hash64_map_hptes(cpu, ptex + slot, 1); in h_enter()
80 if (ppc_hash64_hpte0(cpu, hptes, 0) & HPTE64_V_VALID) { in h_enter()
81 ppc_hash64_unmap_hptes(cpu, hptes, ptex + slot, 1); in h_enter()
84 ppc_hash64_unmap_hptes(cpu, hptes, ptex, 1); in h_enter()
106 const ppc_hash_pte64_t *hptes; in remove_hpte() local
113 hptes = ppc_hash64_map_hptes(cpu, ptex, 1); in remove_hpte()
[all …]
H A Dspapr.c1465 ppc_hash_pte64_t *hptes = g_malloc(n * HASH_PTE_SIZE_64); in spapr_map_hptes() local
1466 kvmppc_read_hptes(hptes, ptex, n); in spapr_map_hptes()
1467 return hptes; in spapr_map_hptes()
1478 const ppc_hash_pte64_t *hptes, in spapr_unmap_hptes() argument
1484 g_free((void *)hptes); in spapr_unmap_hptes()
/openbmc/qemu/target/ppc/
H A Dmmu-hash64.h121 void ppc_hash64_unmap_hptes(PowerPCCPU *cpu, const ppc_hash_pte64_t *hptes,
126 const ppc_hash_pte64_t *hptes, int i) in ppc_hash64_hpte0() argument
128 return ldq_p(&(hptes[i].pte0)); in ppc_hash64_hpte0()
132 const ppc_hash_pte64_t *hptes, int i) in ppc_hash64_hpte1() argument
134 return ldq_p(&(hptes[i].pte1)); in ppc_hash64_hpte1()
H A Dmmu-hash64.c558 const ppc_hash_pte64_t *hptes; in ppc_hash64_map_hptes() local
569 hptes = address_space_map(CPU(cpu)->as, base + pte_offset, &plen, false, in ppc_hash64_map_hptes()
574 return hptes; in ppc_hash64_map_hptes()
577 void ppc_hash64_unmap_hptes(PowerPCCPU *cpu, const ppc_hash_pte64_t *hptes, in ppc_hash64_unmap_hptes() argument
581 cpu->vhyp_class->unmap_hptes(cpu->vhyp, hptes, ptex, n); in ppc_hash64_unmap_hptes()
585 address_space_unmap(CPU(cpu)->as, (void *)hptes, n * HASH_PTE_SIZE_64, in ppc_hash64_unmap_hptes()
H A Dkvm_ppc.h64 void kvmppc_read_hptes(ppc_hash_pte64_t *hptes, hwaddr ptex, int n);
315 static inline void kvmppc_read_hptes(ppc_hash_pte64_t *hptes, in kvmppc_read_hptes() argument
H A Dkvm.c2780 void kvmppc_read_hptes(ppc_hash_pte64_t *hptes, hwaddr ptex, int n) in kvmppc_read_hptes() argument
2810 memcpy(hptes + i, hdr + 1, HASH_PTE_SIZE_64 * valid); in kvmppc_read_hptes()
2816 memset(hptes + i, 0, invalid * HASH_PTE_SIZE_64); in kvmppc_read_hptes()
H A Dcpu.h1540 const ppc_hash_pte64_t *hptes,
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv_rm_mmu.c559 __be64 *hp, *hptes[4]; in kvmppc_h_bulk_remove() local
645 hptes[n] = hp; in kvmppc_h_bulk_remove()
660 hp = hptes[k]; in kvmppc_h_bulk_remove()