|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Question on struct grant table hypercall
Hello All,
I am calling the hypercall to map the grant table on a HVM domain, on
the code I have the cmd and struct gnttab_setup_table required to call
the hypercall, yet on the struct you have XEN_GUEST_HANDLE as a type
to a list of frames, my environment does not include the whole of xen,
I have to include manually all the necessary structs and global
variables needed. But the XEN_GUEST_HANDLE gives me an error, can I
substitute the type with a simple array?
This is the code I am referring:
//This code is slightly modified.
/*
* GNTTABOP_setup_table: Set up a grant table for <dom> comprising at least
* <nr_frames> pages. The frame addresses are written to the <frame_list>.
* Only <nr_frames> addresses are written, even if the table is larger.
* NOTES:
* 1. <dom> may be specified as DOMID_SELF.
* 2. Only a sufficiently-privileged domain may specify <dom> != DOMID_SELF.
* 3. Xen may not support more than a single grant-table page per domain.
*/
#define GNTTABOP_setup_table 2
struct gnttab_setup_table {
/* IN parameters. */
u32 dom;
u32 nr_frames;
/* OUT parameters. */
u16 status; /* GNTST_* */
//??????????????XEN_GUEST_HANDLE(ulong) frame_list;
};
typedef struct gnttab_setup_table gnttab_setup_table_t;
Thanks for the help,
Daniel
--
+-=====---------------------------+
| +---------------------------------+ | This space intentionally blank
for notetaking.
| | | Daniel Castro, |
| | | Consultant/Programmer.|
| | | U Andes |
+-------------------------------------+
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] Question on struct grant table hypercall,
Daniel Castro <=
|
|
|
|
|