[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] Sharing pages between two mini-os



Please always keep the mailing list in Cc, so you optimize the chance
of getting a complete answer in a minimized time.  Otherwise, you run
the risk of either getting a terse answer, or have to wait (possibly
long) that I have time to provide a lengthier answer (or simply that
I come back from vacations...)

Ariani A, on lun. 01 mai 2017 13:49:29 -0400, wrote:
> Could you please let me know how can I use "set_xen_guest_handle"?

Well, simply as I mentioned:

set_xen_guest_handle(setup.frame_list, frames);

i.e. instead of makign a direct assignment, pass to set_xen_guest_handle
the setup_op.frame_list as first argument, and the pointer to set to it
as second argument.

But again, I believe you don't want to set a grant table yourself, and
rather just use include/gnttab.h's functions: call gnttab_grant_access
to grant access, and gnttab_end_access to end the grant. That'll drop
basically 2/3 of what you wrote :)

Samuel

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.