[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 26/34] xen/arm: traps: Drop dump_guest_s1_walk
This function is not used neither export. Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx> Cc: Ian Campbell <ian.campbell@xxxxxxxxxx> Cc: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx> Cc: Tim Deegan <tim@xxxxxxx> --- xen/arch/arm/traps.c | 56 -------------------------------------------------- 1 file changed, 56 deletions(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 2109d03..b1475f3 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -1422,62 +1422,6 @@ static void do_sysreg(struct cpu_user_regs *regs, } #endif -void dump_guest_s1_walk(struct domain *d, vaddr_t addr) -{ - register_t ttbcr = READ_SYSREG(TCR_EL1); - uint64_t ttbr0 = READ_SYSREG64(TTBR0_EL1); - paddr_t paddr; - uint32_t offset; - uint32_t *first = NULL, *second = NULL; - - printk("dom%d VA 0x%08"PRIvaddr"\n", d->domain_id, addr); - printk(" TTBCR: 0x%08"PRIregister"\n", ttbcr); - printk(" TTBR0: 0x%016"PRIx64" = 0x%"PRIpaddr"\n", - ttbr0, p2m_lookup(d, ttbr0 & PAGE_MASK, NULL)); - - if ( ttbcr & TTBCR_EAE ) - { - printk("Cannot handle LPAE guest PT walk\n"); - return; - } - if ( (ttbcr & TTBCR_N_MASK) != 0 ) - { - printk("Cannot handle TTBR1 guest walks\n"); - return; - } - - paddr = p2m_lookup(d, ttbr0 & PAGE_MASK, NULL); - if ( paddr == INVALID_PADDR ) - { - printk("Failed TTBR0 maddr lookup\n"); - goto done; - } - first = map_domain_page(paddr>>PAGE_SHIFT); - - offset = addr >> (12+10); - printk("1ST[0x%"PRIx32"] (0x%"PRIpaddr") = 0x%08"PRIx32"\n", - offset, paddr, first[offset]); - if ( !(first[offset] & 0x1) || - !(first[offset] & 0x2) ) - goto done; - - paddr = p2m_lookup(d, first[offset] & PAGE_MASK, NULL); - - if ( paddr == INVALID_PADDR ) - { - printk("Failed L1 entry maddr lookup\n"); - goto done; - } - second = map_domain_page(paddr>>PAGE_SHIFT); - offset = (addr >> 12) & 0x3FF; - printk("2ND[0x%"PRIx32"] (0x%"PRIpaddr") = 0x%08"PRIx32"\n", - offset, paddr, second[offset]); - -done: - if (second) unmap_domain_page(second); - if (first) unmap_domain_page(first); -} - static void do_trap_instr_abort_guest(struct cpu_user_regs *regs, union hsr hsr) { -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |