aboutsummaryrefslogtreecommitdiffstats
path: root/include/xen/interface/memory.h
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /include/xen/interface/memory.h
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'include/xen/interface/memory.h')
-rw-r--r--include/xen/interface/memory.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/xen/interface/memory.h b/include/xen/interface/memory.h
index d3938d3e71f8..eac3ce153719 100644
--- a/include/xen/interface/memory.h
+++ b/include/xen/interface/memory.h
@@ -141,6 +141,19 @@ struct xen_machphys_mfn_list {
141DEFINE_GUEST_HANDLE_STRUCT(xen_machphys_mfn_list); 141DEFINE_GUEST_HANDLE_STRUCT(xen_machphys_mfn_list);
142 142
143/* 143/*
144 * Returns the location in virtual address space of the machine_to_phys
145 * mapping table. Architectures which do not have a m2p table, or which do not
146 * map it by default into guest address space, do not implement this command.
147 * arg == addr of xen_machphys_mapping_t.
148 */
149#define XENMEM_machphys_mapping 12
150struct xen_machphys_mapping {
151 unsigned long v_start, v_end; /* Start and end virtual addresses. */
152 unsigned long max_mfn; /* Maximum MFN that can be looked up. */
153};
154DEFINE_GUEST_HANDLE_STRUCT(xen_machphys_mapping_t);
155
156/*
144 * Sets the GPFN at which a particular page appears in the specified guest's 157 * Sets the GPFN at which a particular page appears in the specified guest's
145 * pseudophysical address space. 158 * pseudophysical address space.
146 * arg == addr of xen_add_to_physmap_t. 159 * arg == addr of xen_add_to_physmap_t.
@@ -186,6 +199,35 @@ struct xen_translate_gpfn_list {
186}; 199};
187DEFINE_GUEST_HANDLE_STRUCT(xen_translate_gpfn_list); 200DEFINE_GUEST_HANDLE_STRUCT(xen_translate_gpfn_list);
188 201
202/*
203 * Returns the pseudo-physical memory map as it was when the domain
204 * was started (specified by XENMEM_set_memory_map).
205 * arg == addr of struct xen_memory_map.
206 */
207#define XENMEM_memory_map 9
208struct xen_memory_map {
209 /*
210 * On call the number of entries which can be stored in buffer. On
211 * return the number of entries which have been stored in
212 * buffer.
213 */
214 unsigned int nr_entries;
215
216 /*
217 * Entries in the buffer are in the same format as returned by the
218 * BIOS INT 0x15 EAX=0xE820 call.
219 */
220 GUEST_HANDLE(void) buffer;
221};
222DEFINE_GUEST_HANDLE_STRUCT(xen_memory_map);
223
224/*
225 * Returns the real physical memory map. Passes the same structure as
226 * XENMEM_memory_map.
227 * arg == addr of struct xen_memory_map.
228 */
229#define XENMEM_machine_memory_map 10
230
189 231
190/* 232/*
191 * Prevent the balloon driver from changing the memory reservation 233 * Prevent the balloon driver from changing the memory reservation