xen/arm: remove unused dump_p2m_lookup()
PATCH 1/1 xen/arm: remove unused dump_p2m_lookup()
From: Grygorii Strashko <[email protected]>
The dump_p2m_lookup() is not used, so remove it.
Signed-off-by Grygorii Strashko <[email protected]>
--- xen/arch/arm/include/asm/page.h | 2 -- xen/arch/arm/mmu/p2m.c | 13 ------------- 2 files changed, 15 deletions(-)
xen/arch/arm/include/asm/page.h +0 -2
@@ -289,8 +289,6 @@ void flush_page_to_ram(unsigned long mfn, bool sync_icache);/* Print a walk of the hypervisor's page tables for a virtual addr. */ extern void dump_hyp_walk (vaddr_t addr); -/* Print a walk of the p2m for a domain for a physical address. */ -extern void dump_p2m_lookup (struct domain *d,paddr_t addr);static inline uint64_t va_to_par (vaddr_t va) {
xen/arch/arm/mmu/p2m.c +0 -13
@@ -178,19 +178,6 @@ void p2m_dump_info(struct domain *d)p2m_read_unlock (p2m); } -void dump_p2m_lookup (struct domain *d,paddr_t addr) -{ -struct p2m_domain *p2m =p2m_get_hostp2m (d); - -printk ("dom%d IPA 0x%" PRIpaddr"\n" , d->domain_id, addr); - -printk ("P2M @ %p mfn:%#" PRI_mfn"\n" , - p2m->root,mfn_x (page_to_mfn (p2m->root))); - -dump_pt_walk (page_to_maddr (p2m->root), addr, -P2M_ROOT_LEVEL ,P2M_ROOT_PAGES ); -} -/* * p2m_save_state and p2m_restore_state work in pair to workaround * ARM64_WORKAROUND_AT_SPECULATE. p2m_save_state will set-up VTTBR to
Signature · 1 line
2.34.1
Hi Grygorii,
Quoted 4 lines · Grygorii Strashko
From: Grygorii Strashko <[email protected]>
The
dump_p2m_lookup()is not used, so remove it.
NIT: I think this would read better as 'The function dump_p2m_lookup()...'
Otherwise LGTM!
Reviewed-by Hari Limaye <[email protected]>
Cheers,
Hari
Quoted 5 lines · Grygorii Strashko
From: Grygorii Strashko <[email protected]>
The
dump_p2m_lookup()is not used, so remove it.Signed-off-by Grygorii Strashko <[email protected]>
Acked-by Michal Orzel <[email protected]>
~Michal