|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Question about Xen grant table
Hi,
I have been able to setup share memory between domains using grant
table but I still have a question about
getting grant reference mapping. My current code to map grant
reference looks like the following:
vm_area = alloc_vm_area(PAGE_SIZE*npage);
for(i=0; i<npage; i++) {
ops[i].flags = GNTMAP_host_map;
ops[i].ref = ref[i];
ops[i].dom = rid;
ops[i].host_addr = (unsigned long)(vm_area->addr+(i*PAGE_SIZE));
}
lock_vm_area(vm_area);
BUG_ON(HYPERVISOR_grant_table_op(GNTTABOP_map_grant_ref, ops, npage));
unlock_vm_area(vm_area);
For my understanding, it will first allocate new vm nodes and use the
given vm address as host address to get reference.
The problem here is, the address of vm_area can be arbitrary. Is it
possible that, I can specify the host address
to be some pre-determined address? For example, suppose I would like
to map the grant reference to a virtual address starting from, say
0xc2000000? Any suggestion?
Thanks
Haifeng
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] Question about Xen grant table,
Haifeng He <=
|
|
|
|
|