From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: xen.git branch reorg / success with 2.6.30-rc3 pv_ops dom0 Date: Fri, 5 Jun 2009 21:19:25 +0300 Message-ID: <20090605181925.GC24960@edu.joroinen.fi> References: <20090522080655.GA24960@edu.joroinen.fi> <20090604202656.GR24960@edu.joroinen.fi> <1244197217.27370.146.camel@zakaz.uk.xensource.com> <20090605112347.GY24960@edu.joroinen.fi> <1244201864.27370.172.camel@zakaz.uk.xensource.com> <20090605133850.GA24960@edu.joroinen.fi> <1244209979.27370.188.camel@zakaz.uk.xensource.com> <20090605154130.GB24960@edu.joroinen.fi> <1244217948.27370.213.camel@zakaz.uk.xensource.com> <1244218353.27370.216.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1244218353.27370.216.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: Jeremy Fitzhardinge , Xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, Jun 05, 2009 at 05:12:33PM +0100, Ian Campbell wrote: > On Fri, 2009-06-05 at 12:05 -0400, Ian Campbell wrote: > > > > I had some patches to unify the 32 and 64 bit versions of dump page > > table at one point, since the 64 bit version does the right thing. > > I'll see if I can find or reproduce them. > > Couldn't find them but please try this: > I had some problems applying the patch until I figured out it was supposed to be applied to a clean tree.. hopefully "git checkout file" restores (or resets) the file to it's original form and removes any local changes. Here goes again: http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-log-04-with-highpte-no-swap-with-debug2.txt L4 at e1822000 is pinned contains L2 at e1977228 which points at an L1 which is unpinned low mem address 0x8bf8000 Fixmap KM_PTE0 @ 0xf57f0000 Fixmap KM_PTE0 @ 0xf57ee000 (XEN) mm.c:2006:d0 Bad type (saw 28000001 != exp e0000000) for mfn 62991 (pfn 2406e) (XEN) mm.c:707:d0 Error getting mfn 62991 (pfn 2406e) from L1 entry 0000000062991063 for dom0 (XEN) mm.c:3640:d0 ptwr_emulate: could not get_page_from_l1e() BUG: unable to handle kernel paging request at c0207d58 IP: [] xen_set_pte+0x89/0x93 PGD 8ef001 PUD 8ef001 PMD 1268067 PTE 207061 Fixmap KM_PTE0 @ 0xf57f0000 PGD 8ef001 PUD 8ef001 PMD 207067 PTE 0 Fixmap KM_PTE1 @ 0xf57ee000 PGD 8ef001 PUD 8ef001 PMD 207067 PTE 0 Oops: 0003 [#1] SMP list *0x(gdb) list *0xc0405d63 0xc0405d63 is in xen_set_pte (arch/x86/xen/mmu.c:683). 678 ADD_STATS(pte_update_batched, paravirt_get_lazy_mode() == PARAVIRT_LAZY_MMU); 679 680 #ifdef CONFIG_X86_PAE 681 ptep->pte_high = pte.pte_high; 682 smp_wmb(); 683 ptep->pte_low = pte.pte_low; 684 #else 685 *ptep = pte; 686 #endif 687 } (gdb) disas 0xc0405d63 Dump of assembler code for function xen_set_pte: 0xc0405cda : push %ebp 0xc0405cdb : mov %esp,%ebp 0xc0405cdd : push %edi 0xc0405cde : push %esi 0xc0405cdf : mov %ecx,%esi 0xc0405ce1 : push %ebx 0xc0405ce2 : mov %eax,%ebx 0xc0405ce4 : mov %edx,%eax 0xc0405ce6 : sub $0x4,%esp 0xc0405ce9 : and $0x400,%eax 0xc0405cee : je 0xc0405cff 0xc0405cf0 : mov %ebx,%eax 0xc0405cf2 : push $0x7ff1 0xc0405cf7 : call 0xc0405c35 0xc0405cfc : pop %ebx 0xc0405cfd : jmp 0xc0405d65 0xc0405cff : cmpb $0x0,0xc08f334c 0xc0405d06 : je 0xc0405d1b 0xc0405d08 <__constant_c_and_count_memset+0>: mov $0x33,%ecx 0xc0405d0d <__constant_c_and_count_memset+5>: mov $0xc08f3280,%edi 0xc0405d12 <__constant_c_and_count_memset+10>: rep stos %eax,%es:(%edi) 0xc0405d14 : movb $0x0,0xc08f334c 0xc0405d1b : incl 0xc08f32a4 0xc0405d21 : cmpb $0x0,0xc08f334c 0xc0405d28 : je 0xc0405d3f 0xc0405d2a <__constant_c_and_count_memset+0>: mov $0x33,%ecx 0xc0405d2f <__constant_c_and_count_memset+5>: mov $0xc08f3280,%edi 0xc0405d34 <__constant_c_and_count_memset+10>: xor %eax,%eax 0xc0405d36 <__constant_c_and_count_memset+12>: rep stos %eax,%es:(%edi) 0xc0405d38 : movb $0x0,0xc08f334c 0xc0405d3f : mov 0xc08f32ac,%edi 0xc0405d45 : mov %edx,-0x10(%ebp) 0xc0405d48 : call 0xc0422f2a 0xc0405d4d : dec %eax 0xc0405d4e : sete %al 0xc0405d51 : movzbl %al,%eax 0xc0405d54 : lea (%eax,%edi,1),%edi 0xc0405d57 : mov %edi,0xc08f32ac 0xc0405d5d : mov %esi,0x4(%ebx) 0xc0405d60 : mov -0x10(%ebp),%edx 0xc0405d63 : mov %edx,(%ebx) 0xc0405d65 : lea -0xc(%ebp),%esp 0xc0405d68 : pop %ebx 0xc0405d69 : pop %esi 0xc0405d6a : pop %edi 0xc0405d6b : pop %ebp 0xc0405d6c : ret End of assembler dump. (gdb) -- Pasi