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

[Xen-devel] Question on struct grant table hypercall


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Daniel Castro <evil.dani@xxxxxxxxx>
  • Date: Tue, 28 Jun 2011 09:38:51 +0900
  • Delivery-date: Mon, 27 Jun 2011 17:39:23 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=C0/Bq5Q9Zd7WZeysmbyDP/12fU9xqMnZVyb7okvIqRgs+DqMslLUenA2lngXtNAuCq lNtR2Y89IFN8L5Wl22v9L2apTKTccpPiI1gzy7h+daHD5DvajVUI4aAcu+qM8MNeO55P z/WFfd19T4wFJ1G2ARVFBcUyhPCN0BICsuIT8=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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


 


Rackspace

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