aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_domain.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-07-05 14:43:37 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-07-05 14:43:37 +0100
commit24342075eacb997caed94aaf83f57e521fa70fc9 (patch)
tree86d3c862a847a94b369c919b659827a0fa2e52b7 /tools/libxc/xc_domain.c
parent24a06f7ce128efb2188ab30512bd4d9e1dbab754 (diff)
downloadxen-24342075eacb997caed94aaf83f57e521fa70fc9.tar.gz
xen-24342075eacb997caed94aaf83f57e521fa70fc9.tar.bz2
xen-24342075eacb997caed94aaf83f57e521fa70fc9.zip
numa: Extend MEMOP_ allocation functions to take a node argument.
The address_bits field will be limited to 8 bits and is now embedded in the mem_flags member, which additionally contains the node number (limited to 8 bit). Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/libxc/xc_domain.c')
-rw-r--r--tools/libxc/xc_domain.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
index f46fe4a671..3b08922067 100644
--- a/tools/libxc/xc_domain.c
+++ b/tools/libxc/xc_domain.c
@@ -438,14 +438,14 @@ int xc_domain_memory_increase_reservation(int xc_handle,
uint32_t domid,
unsigned long nr_extents,
unsigned int extent_order,
- unsigned int address_bits,
+ unsigned int mem_flags,
xen_pfn_t *extent_start)
{
int err;
struct xen_memory_reservation reservation = {
.nr_extents = nr_extents,
.extent_order = extent_order,
- .address_bits = address_bits,
+ .mem_flags = mem_flags,
.domid = domid
};
@@ -459,8 +459,8 @@ int xc_domain_memory_increase_reservation(int xc_handle,
if ( err >= 0 )
{
DPRINTF("Failed allocation for dom %d: "
- "%ld extents of order %d, addr_bits %d\n",
- domid, nr_extents, extent_order, address_bits);
+ "%ld extents of order %d, mem_flags %x\n",
+ domid, nr_extents, extent_order, mem_flags);
errno = ENOMEM;
err = -1;
}
@@ -478,7 +478,7 @@ int xc_domain_memory_decrease_reservation(int xc_handle,
struct xen_memory_reservation reservation = {
.nr_extents = nr_extents,
.extent_order = extent_order,
- .address_bits = 0,
+ .mem_flags = 0,
.domid = domid
};
@@ -507,17 +507,17 @@ int xc_domain_memory_decrease_reservation(int xc_handle,
}
int xc_domain_memory_populate_physmap(int xc_handle,
- uint32_t domid,
- unsigned long nr_extents,
- unsigned int extent_order,
- unsigned int address_bits,
- xen_pfn_t *extent_start)
+ uint32_t domid,
+ unsigned long nr_extents,
+ unsigned int extent_order,
+ unsigned int mem_flags,
+ xen_pfn_t *extent_start)
{
int err;
struct xen_memory_reservation reservation = {
.nr_extents = nr_extents,
.extent_order = extent_order,
- .address_bits = address_bits,
+ .mem_flags = mem_flags,
.domid = domid
};
set_xen_guest_handle(reservation.extent_start, extent_start);