xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* vmap granted pages
@ 2012-05-29 14:26 Anastassios Nanos
  0 siblings, 0 replies; only message in thread
From: Anastassios Nanos @ 2012-05-29 14:26 UTC (permalink / raw)
  To: xen-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm trying to reconstruct a user-level, virtually contiguous space
from guest A to guest B using pages that have been granted.

Is this possible with vmap ? I was thinking something like the following:

guest A:

a) get vaddr from userspace, construct page_list
b) grant each page to guest B (using for instance the following):

for each page:
mfn = pfn_to_mfn(page_to_pfn(page));
gref = gnttab_grant_foreign_access(domid, mfn, 0);

(magically transfer nr_pages and grefs to guest B)

guest B:

c) accept the grants and construct a page_list

for each page:
pages <- {accept grant}

d) create a kernel virtual space that is comprised by the previous
page_list:

vaddr = vmap(page_list, nr_pages, VM_MAP, PAGE_KERNEL);

Is there something I'm missing on the previous scenario?

cheers,
A.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAk/E3LEACgkQCNbwM8zOdZ0QIwCggRkR+H/HDLXBXTsdKhHVqHEV
zDoAniCQmZPnZW/G37g8WwMFfZjSUtSQ
=mVsH
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-29 14:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29 14:26 vmap granted pages Anastassios Nanos

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).