Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99547
b: refs/heads/master
c: bfdab12
h: refs/heads/master
i:
  99545: 04f7e52
  99543: fec1c19
v: v3
  • Loading branch information
Isaku Yamahata authored and Thomas Gleixner committed May 27, 2008
1 parent a7af282 commit 36e7979
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a90971ebddc81330f59203dee9803512aa4e2ef6
refs/heads/master: bfdab126cfa6fe3c2ddb8b6007a38202b510b6c1
12 changes: 8 additions & 4 deletions trunk/include/xen/interface/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct xen_memory_reservation {
* OUT: GMFN bases of extents that were allocated
* (NB. This command also updates the mach_to_phys translation table)
*/
ulong extent_start;
GUEST_HANDLE(ulong) extent_start;

/* Number of extents, and size/alignment of each (2^extent_order pages). */
unsigned long nr_extents;
Expand All @@ -50,6 +50,7 @@ struct xen_memory_reservation {
domid_t domid;

};
DEFINE_GUEST_HANDLE_STRUCT(xen_memory_reservation);

/*
* Returns the maximum machine frame number of mapped RAM in this system.
Expand Down Expand Up @@ -85,14 +86,15 @@ struct xen_machphys_mfn_list {
* any large discontiguities in the machine address space, 2MB gaps in
* the machphys table will be represented by an MFN base of zero.
*/
ulong extent_start;
GUEST_HANDLE(ulong) extent_start;

/*
* Number of extents written to the above array. This will be smaller
* than 'max_extents' if the machphys table is smaller than max_e * 2MB.
*/
unsigned int nr_extents;
};
DEFINE_GUEST_HANDLE_STRUCT(xen_machphys_mfn_list);

/*
* Sets the GPFN at which a particular page appears in the specified guest's
Expand All @@ -115,6 +117,7 @@ struct xen_add_to_physmap {
/* GPFN where the source mapping page should appear. */
unsigned long gpfn;
};
DEFINE_GUEST_HANDLE_STRUCT(xen_add_to_physmap);

/*
* Translates a list of domain-specific GPFNs into MFNs. Returns a -ve error
Expand All @@ -129,13 +132,14 @@ struct xen_translate_gpfn_list {
unsigned long nr_gpfns;

/* List of GPFNs to translate. */
ulong gpfn_list;
GUEST_HANDLE(ulong) gpfn_list;

/*
* Output list to contain MFN translations. May be the same as the input
* list (in which case each input GPFN is overwritten with the output MFN).
*/
ulong mfn_list;
GUEST_HANDLE(ulong) mfn_list;
};
DEFINE_GUEST_HANDLE_STRUCT(xen_translate_gpfn_list);

#endif /* __XEN_PUBLIC_MEMORY_H__ */

0 comments on commit 36e7979

Please sign in to comment.