aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_resume.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-01-13 08:12:56 +0000
committerKeir Fraser <keir.fraser@citrix.com>2010-01-13 08:12:56 +0000
commit9fececad98aa1259a9896edf7e7931822e3eef87 (patch)
tree5f7b5081edfee2647be16264a12e48c10465fc82 /tools/libxc/xc_resume.c
parentd092fb82a229773dad917f5a6eaa3cced9054d19 (diff)
downloadxen-9fececad98aa1259a9896edf7e7931822e3eef87.tar.gz
xen-9fececad98aa1259a9896edf7e7931822e3eef87.tar.bz2
xen-9fececad98aa1259a9896edf7e7931822e3eef87.zip
libxc: use new (replacement) mmap-batch ioctl
Replace all calls to xc_map_foreign_batch() where the caller doesn't look at the passed in array to check for errors by calls to xc_map_foreign_pages(). Replace all remaining calls by such to the newly introduced xc_map_foreign_bulk(). As a sideband modification (needed while writing the patch to ensure they're unused) eliminate unused parameters to uncanonicalize_pagetable() and xc_map_foreign_batch_single(). Also unmap live_p2m_frame_list earlier in map_and_save_p2m_table(), reducing the peak amount of virtual address space required. All supported OSes other than Linux continue to use the old ioctl for the time being. Also change libxc's MAJOR to 4.0 to reflect the API change. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'tools/libxc/xc_resume.c')
-rw-r--r--tools/libxc/xc_resume.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxc/xc_resume.c b/tools/libxc/xc_resume.c
index 2816609b0d..c17ae262d3 100644
--- a/tools/libxc/xc_resume.c
+++ b/tools/libxc/xc_resume.c
@@ -158,7 +158,7 @@ static int xc_domain_resume_any(int xc_handle, uint32_t domid)
goto out;
}
- p2m_frame_list = xc_map_foreign_batch(xc_handle, domid, PROT_READ,
+ p2m_frame_list = xc_map_foreign_pages(xc_handle, domid, PROT_READ,
p2m_frame_list_list,
P2M_FLL_ENTRIES);
if ( p2m_frame_list == NULL )
@@ -171,7 +171,7 @@ static int xc_domain_resume_any(int xc_handle, uint32_t domid)
the guest must not change which frames are used for this purpose.
(its not clear why it would want to change them, and we'll be OK
from a safety POV anyhow. */
- p2m = xc_map_foreign_batch(xc_handle, domid, PROT_READ,
+ p2m = xc_map_foreign_pages(xc_handle, domid, PROT_READ,
p2m_frame_list,
P2M_FL_ENTRIES);
if ( p2m == NULL )