Skip to contentSkip to conversation

Grant Table Issue

DISCUSSION ashoka xen 1 participant 2 messages May 29, 2008

lore
Share & tools
lore

ashoka xen

author
#0 lore raw

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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#1 lore raw

Sorry for trouble. It was my mistake. gnttab_grant_foreign_access requires Dom0's domain id whereas gnttab_set_map_op requires DomU's domain id.

Regards,
Ashoka

Quoted 19 lines · ashoka xen

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:

Quoted 7 lines

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

Is this a similar problem ?

Regards,
Ashoka

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel