aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/memory.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-07-05 08:40:26 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-07-05 08:40:26 +0100
commit621441dcd1a5253e381741b3e77adc5074b3fcd6 (patch)
tree0e661fbc082745589c54aafb1a977c2f459331c7 /xen/common/memory.c
parent52ff658b7e69e45f00679b7f1a29d25ab7ed7f8e (diff)
downloadxen-621441dcd1a5253e381741b3e77adc5074b3fcd6.tar.gz
xen-621441dcd1a5253e381741b3e77adc5074b3fcd6.tar.bz2
xen-621441dcd1a5253e381741b3e77adc5074b3fcd6.zip
Add an exact-node request flag for mem allocations.
Signed-off-by : Dulloor <dulloor@gmail.com>
Diffstat (limited to 'xen/common/memory.c')
-rw-r--r--xen/common/memory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/common/memory.c b/xen/common/memory.c
index c7caa074c0..924f07a1e1 100644
--- a/xen/common/memory.c
+++ b/xen/common/memory.c
@@ -545,6 +545,8 @@ long do_memory_op(unsigned long cmd, XEN_GUEST_HANDLE(void) arg)
}
args.memflags |= MEMF_node(XENMEMF_get_node(reservation.mem_flags));
+ if (reservation.mem_flags & XENMEMF_exact_node_request)
+ args.memflags |= MEMF_exact_node;
if ( op == XENMEM_populate_physmap
&& (reservation.mem_flags & XENMEMF_populate_on_demand) )