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 16:38:50 +0300 Message-ID: <20090605133850.GA24960@edu.joroinen.fi> References: <20090518170626.GS24960@edu.joroinen.fi> <20090518171711.GT24960@edu.joroinen.fi> <4A119D4B.8030209@goop.org> <20090518175033.GU24960@edu.joroinen.fi> <1242896915.22654.99.camel@zakaz.uk.xensource.com> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1244201864.27370.172.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 11:37:44AM +0000, Ian Campbell wrote: > On Fri, 2009-06-05 at 07:23 -0400, Pasi K=E4rkk=E4inen wrote: > > > Do you know which line of xen_set_pte() the fault is occurring at? = I > > > assume either "ptep->pte_high =3D" or "ptep->pte_low =3D". > > >=20 > >=20 > > I haven't looked for that.. I guess I should compile debug=3Dy Xen bu= ild > > again. >=20 > xen_set_pte() is in the kernel rather than Xen so e.g. from > http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-log-01-with-= highpte.txt: > [...] > EIP: 0061:[] EFLAGS: 00010296 CPU: 0 > [...] >=20 > Can you use gdb to find out what 0xc0405d63 is, e.g. with "list > *0xc0405d63" and/or "disas 0xc0405d63" >=20 (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() =3D= =3D PARAVIRT_LAZY_MMU); 679 680 #ifdef CONFIG_X86_PAE 681 ptep->pte_high =3D pte.pte_high; 682 smp_wmb(); 683 ptep->pte_low =3D pte.pte_low; 684 #else 685 *ptep =3D pte; 686 #endif 687 } 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)=20 > Trying a debug=3Dy Xen might be interesting as well though, it does mor= e > checks etc so perhaps we can spot something odd earlier. Also all my > repro attempts were with debug=3Dy so it would be interesting to know w= hat > happens for you. >=20 I'll build debug=3Dy Xen hypervisor, and also new CONFIG_HIGHPTE=3Dy kern= el with the debug patch you sent.=20 Btw. I just realized you said earlier that you tested with dom0_mem=3D512= M .. that doesn't give you any highmem.. ? Maybe that's why you aren't seeing = the problem.. I have dom0_mem=3D1024M -- Pasi