[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC 53/55] 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 <wei.liu2@xxxxxxxxxx> --- xen/arch/x86/mm.c | 16 ---------------- xen/include/asm-x86/mm.h | 2 -- xen/include/asm-x86/page.h | 5 ----- 3 files changed, 23 deletions(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 44c9df5c9e..2a3442d881 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 708b84bb89..7fae4bb311 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); diff --git a/xen/include/asm-x86/page.h b/xen/include/asm-x86/page.h index 05a8b1efa6..906ec701a3 100644 --- a/xen/include/asm-x86/page.h +++ b/xen/include/asm-x86/page.h @@ -187,11 +187,6 @@ static inline l4_pgentry_t l4e_from_paddr(paddr_t pa, unsigned int flags) #define l4e_has_changed(x,y,flags) \ ( !!(((x).l4 ^ (y).l4) & ((PADDR_MASK&PAGE_MASK)|put_pte_flags(flags))) ) -/* Pagetable walking. */ -#define l2e_to_l1e(x) ((l1_pgentry_t *)__va(l2e_get_paddr(x))) -#define l3e_to_l2e(x) ((l2_pgentry_t *)__va(l3e_get_paddr(x))) -#define l4e_to_l3e(x) ((l3_pgentry_t *)__va(l4e_get_paddr(x))) - #define map_l1t_from_l2e(x) (l1_pgentry_t *)map_domain_page(l2e_get_mfn(x)) #define map_l2t_from_l3e(x) (l2_pgentry_t *)map_domain_page(l3e_get_mfn(x)) #define map_l3t_from_l4e(x) (l3_pgentry_t *)map_domain_page(l4e_get_mfn(x)) -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |