Skip to contentSkip to conversation

grant table issue

DISCUSSION Xin Zhao 2 participants 2 messages Jun 9, 2006

lore
Share & tools
lore

Xin Zhao

author
#0 lore raw

Hi,

I am trying to export a memory page of dom0 to a domU in readonly mode. In dom0, I grant access permission to that domU. In domU, I did HYPERVISOR_grant_table_op(GNTTABOP_map_grant_ref, map, res->nr_pages);

All these functions returned successfully. But when I tried to access data in the mapped memory page, all data I got is 0.

Is there any restriction that preventing dom0 pages from being export to other domains? If so, is there any way to relax this restriction?

xin

#1 lore raw
Quoted 5 lines · Xin Zhao

I am trying to export a memory page of dom0 to a domU in readonly mode. In dom0, I grant access permission to that domU. In domU, I did HYPERVISOR_grant_table_op(GNTTABOP_map_grant_ref, map, res->nr_pages);

All these functions returned successfully. But when I tried to access data in the mapped memory page, all data I got is 0. Is there any restriction that preventing dom0 pages from being export to other domains? If so, is there any way to relax this restriction?

No, there are no such restrictions.

-- Keir