[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 1/5] libxc: remove allocate member from struct xc_dom_image
The allocate() callback in struct xc_dom_image is never set. Remove it. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> --- tools/libxc/include/xc_dom.h | 2 -- tools/libxc/xc_dom_core.c | 4 ---- 2 files changed, 6 deletions(-) diff --git a/tools/libxc/include/xc_dom.h b/tools/libxc/include/xc_dom.h index 600aef6..a4ca8a4 100644 --- a/tools/libxc/include/xc_dom.h +++ b/tools/libxc/include/xc_dom.h @@ -177,8 +177,6 @@ struct xc_dom_image { /* kernel loader */ struct xc_dom_arch *arch_hooks; - /* allocate up to virt_alloc_end */ - int (*allocate) (struct xc_dom_image * dom, xen_vaddr_t up_to); }; /* --- pluggable kernel loader ------------------------------------- */ diff --git a/tools/libxc/xc_dom_core.c b/tools/libxc/xc_dom_core.c index 8466677..b432762 100644 --- a/tools/libxc/xc_dom_core.c +++ b/tools/libxc/xc_dom_core.c @@ -579,8 +579,6 @@ int xc_dom_alloc_segment(struct xc_dom_image *dom, seg->vend = start + pages * page_size; dom->virt_alloc_end = seg->vend; - if (dom->allocate) - dom->allocate(dom, dom->virt_alloc_end); DOMPRINTF("%-20s: %-12s : 0x%" PRIx64 " -> 0x%" PRIx64 " (pfn 0x%" PRIpfn " + 0x%" PRIpfn " pages)", @@ -603,8 +601,6 @@ int xc_dom_alloc_page(struct xc_dom_image *dom, char *name) start = dom->virt_alloc_end; dom->virt_alloc_end += page_size; - if (dom->allocate) - dom->allocate(dom, dom->virt_alloc_end); pfn = (start - dom->parms.virt_base) / page_size; DOMPRINTF("%-20s: %-12s : 0x%" PRIx64 " (pfn 0x%" PRIpfn ")", -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |