All of lore.kernel.org
 help / color / mirror / Atom feed
* grant table issue
@ 2006-06-09  8:47 Xin Zhao
  2006-06-09  9:02 ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Xin Zhao @ 2006-06-09  8:47 UTC (permalink / raw)
  To: xen-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Grant Table Issue
@ 2008-05-29 10:01 ashoka xen
  2008-05-29 13:38 ` ashoka xen
  0 siblings, 1 reply; 4+ messages in thread
From: ashoka xen @ 2008-05-29 10:01 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 810 bytes --]

Hello

I am facing a problem in using grant tables. DomU allocates a page and
passes grant reference to Dom0. When Dom0 tries to map the shared page, it
gives following error:

(XEN) grant_table.c:264:d0 Bad flags (1) or dom (1). (expected dom 0)

Here DomU (id 1) shared a page for read-write access and Dom0 tried to map
it using GNTMAP_host_map, read-write access. CPU is x86, PAE enabled, tried
Xen-3.1.3 and Xen-3.1.4. - same error for both.

If same code is written in two modules - one for DomU and other for Dom0.
First a module is inserted into DomU and later other module is inserted into
Dom0, the code works fine.

When searched for similar problem, I found following link:

http://lists.xensource.com/archives/html/xen-ppc-devel/2006-06/msg00234.html

Is this a similar problem ?

Regards,
Ashoka

[-- Attachment #1.2: Type: text/html, Size: 959 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-29 13:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-09  8:47 grant table issue Xin Zhao
2006-06-09  9:02 ` Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2008-05-29 10:01 Grant Table Issue ashoka xen
2008-05-29 13:38 ` ashoka xen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.