# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1287419895 -3600
# Node ID ad0219b0b3f876b9a654ac7ed00ab0e1327d35f8
# Parent 8e00eeb1c0d33818547dcc9534872c0bbe1a750c
libxc: drop xc_get_max_pages
The function isn't really ia64 specific but since the result isn't
actually used in the only caller and the same info is available via
xc_domain_getinfo simply drop the function.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
tools/libxc/ia64/xc_ia64_hvm_build.c | 7 -------
tools/libxc/ia64/xc_ia64_stubs.c | 10 ----------
tools/libxc/xenctrl.h | 2 --
3 files changed, 19 deletions(-)
diff -r 8e00eeb1c0d3 -r ad0219b0b3f8 tools/libxc/ia64/xc_ia64_hvm_build.c
--- a/tools/libxc/ia64/xc_ia64_hvm_build.c Mon Oct 18 17:37:50 2010 +0100
+++ b/tools/libxc/ia64/xc_ia64_hvm_build.c Mon Oct 18 17:38:15 2010 +0100
@@ -1078,13 +1078,6 @@ xc_hvm_build(xc_interface *xch, uint32_t
vcpu_guest_context_t *ctxt = &st_ctxt_any.c;
char *image = NULL;
unsigned long image_size;
- unsigned long nr_pages;
-
- nr_pages = xc_get_max_pages(xch, domid);
- if (nr_pages < 0) {
- PERROR("Could not find total pages for domain");
- goto error_out;
- }
image = xc_read_image(xch, image_name, &image_size);
if (image == NULL) {
diff -r 8e00eeb1c0d3 -r ad0219b0b3f8 tools/libxc/ia64/xc_ia64_stubs.c
--- a/tools/libxc/ia64/xc_ia64_stubs.c Mon Oct 18 17:37:50 2010 +0100
+++ b/tools/libxc/ia64/xc_ia64_stubs.c Mon Oct 18 17:38:15 2010 +0100
@@ -66,16 +66,6 @@ xc_get_pfn_list(xc_interface *xch, uint3
0, max_pfns);
}
-long
-xc_get_max_pages(xc_interface *xch, uint32_t domid)
-{
- struct xen_domctl domctl;
- domctl.cmd = XEN_DOMCTL_getdomaininfo;
- domctl.domain = (domid_t)domid;
- return ((do_domctl(xch, &domctl) < 0)
- ? -1 : domctl.u.getdomaininfo.max_pages);
-}
-
/* It is possible to get memmap_info and memmap by
foreign domain page mapping. But it's racy. Use hypercall to avoid race. */
static int
diff -r 8e00eeb1c0d3 -r ad0219b0b3f8 tools/libxc/xenctrl.h
--- a/tools/libxc/xenctrl.h Mon Oct 18 17:37:50 2010 +0100
+++ b/tools/libxc/xenctrl.h Mon Oct 18 17:38:15 2010 +0100
@@ -975,8 +975,6 @@ int xc_copy_to_domain_page(xc_interface
int xc_clear_domain_page(xc_interface *xch, uint32_t domid,
unsigned long dst_pfn);
-
-long xc_get_max_pages(xc_interface *xch, uint32_t domid);
int xc_mmuext_op(xc_interface *xch, struct mmuext_op *op, unsigned int nr_ops,
domid_t dom);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|