xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Immediate kernel panic using gntdev device
@ 2012-11-11 23:35 D Sundstrom
  2012-11-12 11:36 ` Pablo Llopis
  0 siblings, 1 reply; 8+ messages in thread
From: D Sundstrom @ 2012-11-11 23:35 UTC (permalink / raw)
  To: xen-devel


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

Running under debian wheezy kernel 3.2.0-3-686-pae (32 bit), under Xen 4.1
HVM.

The linux PV drivers load and all appears to be fine.

I want to use the gntalloc device to allocate a page of memory from Domain
A and then map that into Domain B using gntdev.  Both are unprivileged
domains.

Using Daniel DeGraaf's test program here:
http://lists.xen.org/archives/html/xen-devel/2011-01/txtzDU6iZhTkB.txt

I can run the command to create a grant, but upon running the command to
map the grant (from either the same domain or another DomU), the kernel
immediately crashes with no diagnostic output.

Should I expect to be able to map grants in a DomU allocated in another
DomU?

Example of running the test:

$  xenstore-read domid
8

$  thetestprogram

src-add <domid>       return gntref, address
map <domid> <ref>     return index, address
src-del <gntref>      no rv
gu <index>            no rv
unmap <address>       no rv
show                  print and change mapped items
This process bumps by 4000

src-add 8

src-add mapped 1372 at 0=0

show

00(-1217044480,0): current     4000    new    0

map 8 1372

(immediately crashes the VM)


Thanks,

David

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

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

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

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

end of thread, other threads:[~2012-12-04 17:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-11 23:35 Immediate kernel panic using gntdev device D Sundstrom
2012-11-12 11:36 ` Pablo Llopis
2012-11-12 13:15   ` D Sundstrom
2012-11-13 16:24     ` Daniel De Graaf
2012-12-04  0:49       ` D Sundstrom
2012-12-04 14:18         ` Daniel De Graaf
2012-12-04 17:48           ` D Sundstrom
2012-12-04 17:54             ` Daniel De Graaf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).