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

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



Ariani A, on lun. 01 mai 2017 14:08:37 -0400, wrote:
> 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);

Indeed, the frame_list field of gnttab_setup_table wants the list of
pfns for the grant table, not the pointer to the grant table itself.

> 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?

There is no other step needed.  See examples of uses within mini-os,
e.g. pcifront.c, you just give the domid, the frame number, whether r/w
or r/o, and you get th reference to pass to the friend domU.

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