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

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



Dear Samuel,
Thanks again.

when I use "set_xen_guest_handle(setup_op.frame_list, grant_table);"
this error comes up:
../../xen/include/public/arch-x86/xen.h:56:58: error: assignment from incompatible pointer type [-Werror]
 #define set_xen_guest_handle_raw(hnd, val)  do { (hnd).p = val; } while (0)
                                                          ^
../../xen/include/public/arch-x86/xen.h:57:40: note: in expansion of macro ‘set_xen_guest_handle_raw’
 #define set_xen_guest_handle(hnd, val) set_xen_guest_handle_raw(hnd, val)
                                        ^
offering.c:28:5: note: in expansion of macro ‘set_xen_guest_handle’
     set_xen_guest_handle(setup_op.frame_list, grant_table);

............................
If I want to disregard this example and use gnttab.h functions only,
could you please explain for me what are the necessary steps rather than granting and granting_end accesses?
Thanks


On Mon, May 1, 2017 at 1:54 PM, Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> wrote:
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®.