Displaying 1 result from an estimated 1 matches for "buffer_first_gref".
2013 Jul 25
0
How to get the PFN of a vmalloc'ed address in a domU ?
...ensocket''s code) :
if (!(x->buffer_area = alloc_vm_area(buffer_num_pages * PAGE_SIZE, NULL))) {
DPRINTK("error: cannot allocate %d buffer pages\n", buffer_num_pages);
goto err_unmap;
}
x->buffer_addr = (unsigned long)x->buffer_area->addr;
grefp = &d->buffer_first_gref;
for (i = 0; i < buffer_num_pages; i++) {
printk(KERN_INFO "Mounting GREF %d\n", *grefp);
memset(&op, 0, sizeof(op));
op.host_addr = x->buffer_addr + i * PAGE_SIZE;
op.flags = GNTMAP_host_map;
op.ref = *grefp;
op.dom = x->otherend_id;
rc = HYPERVISOR_...