From: Wei Liu Date: Tue, 5 Feb 2019 12:24:50 +0000 (+0000) Subject: x86/mm: drop old page table APIs X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8ee7c8f8495246969ba19cea152aef35ab27039d;p=people%2Fliuw%2Fxen.git x86/mm: drop old page table APIs Now that we've switched all users to the new APIs, the old ones aren't needed anymore. Signed-off-by: Wei Liu --- diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index d6d28a0f98..165cfad75a 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -4723,22 +4723,6 @@ int mmcfg_intercept_write( return X86EMUL_OKAY; } -void *alloc_xen_pagetable(void) -{ - mfn_t mfn; - - mfn = alloc_xen_pagetable_new(); - ASSERT(!mfn_eq(mfn, INVALID_MFN)); - - return map_xen_pagetable_new(mfn); -} - -void free_xen_pagetable(void *v) -{ - if ( system_state != SYS_STATE_early_boot ) - free_xen_pagetable_new(virt_to_mfn(v)); -} - mfn_t alloc_xen_pagetable_new(void) { if ( system_state != SYS_STATE_early_boot ) diff --git a/xen/include/asm-x86/mm.h b/xen/include/asm-x86/mm.h index ee356f40fa..d629e3cb5e 100644 --- a/xen/include/asm-x86/mm.h +++ b/xen/include/asm-x86/mm.h @@ -642,8 +642,6 @@ int arch_acquire_resource(struct domain *d, unsigned int type, unsigned int *flags); /* Allocator functions for Xen pagetables. */ -void *alloc_xen_pagetable(void); -void free_xen_pagetable(void *v); mfn_t alloc_xen_pagetable_new(void); void *map_xen_pagetable_new(mfn_t mfn); void unmap_xen_pagetable_new(void *v);