unsigned long in_chunk_order, out_chunk_order;
xen_pfn_t gpfn, gmfn, mfn;
unsigned long i, j, k;
- unsigned int memflags = 0;
+ unsigned int node, memflags = 0;
long rc = 0;
struct domain *d;
struct page_info *page;
d,
XENMEMF_get_address_bits(exch.out.mem_flags) ? :
(BITS_PER_LONG+PAGE_SHIFT)));
- memflags |= MEMF_node(XENMEMF_get_node(exch.out.mem_flags));
+ node = XENMEMF_get_node(exch.out.mem_flags);
+ if ( node == NUMA_NO_NODE )
+ node = domain_to_node(d);
+ memflags |= MEMF_node(node);
for ( i = (exch.nr_exchanged >> in_chunk_order);
i < (exch.in.nr_extents >> in_chunk_order);