Lines Matching defs:rmap
152 struct gmap_rmap *rmap, *rnext, *head;
171 gmap_for_each_rmap_safe(rmap, rnext, head)
172 kfree(rmap);
1171 * gmap_insert_rmap - add a rmap to the host_to_rmap radix tree
1173 * @vmaddr: vm address associated with the rmap
1174 * @rmap: pointer to the rmap structure
1179 struct gmap_rmap *rmap)
1186 rmap->next = radix_tree_deref_slot_protected(slot,
1188 radix_tree_replace_slot(&sg->host_to_rmap, slot, rmap);
1190 rmap->next = NULL;
1192 rmap);
1197 * gmap_protect_rmap - restrict access rights to memory (RO) and create an rmap
1199 * @raddr: rmap address in the shadow gmap
1203 * Returns 0 if successfully protected and the rmap was created, -ENOMEM
1210 struct gmap_rmap *rmap;
1222 rmap = kzalloc(sizeof(*rmap), GFP_KERNEL);
1223 if (!rmap)
1225 rmap->raddr = raddr;
1228 kfree(rmap);
1238 gmap_insert_rmap(sg, vmaddr, rmap);
1244 kfree(rmap);
1283 * @raddr: rmap address in the shadow guest address space
1302 * @raddr: rmap address in the shadow guest address space
1348 * @raddr: rmap address in the shadow guest address space
1377 * @raddr: rmap address in the shadow guest address space
1434 * @raddr: rmap address in the shadow guest address space
1462 * @raddr: rmap address in the shadow guest address space
1491 * @raddr: rmap address in the shadow guest address space
1519 * @raddr: rmap address in the shadow guest address space
2109 struct gmap_rmap *rmap;
2120 rmap = kzalloc(sizeof(*rmap), GFP_KERNEL);
2121 if (!rmap)
2123 rmap->raddr = (saddr & PAGE_MASK) | _SHADOW_RMAP_PGTABLE;
2150 gmap_insert_rmap(sg, vmaddr, rmap);
2151 rmap = NULL;
2164 kfree(rmap);
2177 struct gmap_rmap *rmap, *rnext, *head;
2201 gmap_for_each_rmap_safe(rmap, rnext, head) {
2202 bits = rmap->raddr & _SHADOW_RMAP_MASK;
2203 raddr = rmap->raddr ^ bits;
2221 kfree(rmap);