From: "Jan Beulich" Subject: Re: Possible regression in "x86-64: reduce range spanned by 1:1 mapping and frame table indexes" Date: Mon, 07 Dec 2009 10:37:43 +0000 Message-ID: <4B1CE90702000078000240F3@vpn.id2.novell.com> References: <20091206235307.GA12909@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20091206235307.GA12909@verge.net.au> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Simon Horman Cc: Keir Fraser , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >(XEN) ----[ Xen-3.5-unstable x86_64 debug=3Dy Not tainted ]---- >(XEN) CPU: 0 >(XEN) RIP: e008:[] sh_remove_shadows+0x149/0x86a >(XEN) RFLAGS: 0000000000010286 CONTEXT: hypervisor >(XEN) rax: ffff8301140fa000 rbx: ffff82f601e10000 rcx: 000000000000000= 0 >(XEN) rdx: ffff82c4801fb9e0 rsi: 00000000000f0800 rdi: ffff8301140fae1= c >(XEN) rbp: ffff82c4802dfb68 rsp: ffff82c4802dfb38 r8: 00000000000f080= 0 >(XEN) r9: ffff8301186a8000 r10: ffff8300ddc08000 r11: 000000000000000= 0 >(XEN) r12: ffff8300ddc08000 r13: 00000000000f0800 r14: ffff82c4802dff2= 8 >(XEN) r15: 0000000000000000 cr0: 0000000080050033 cr4: 00000000000026f= 0 >... >(XEN) Xen call trace: >(XEN) [] sh_remove_shadows+0x149/0x86a >(XEN) [] sh_page_fault__guest_2+0x184d/0x1bf3 >(XEN) [] vmx_vmexit_handler+0x717/0x1a68 >(XEN) =20 >(XEN) Pagetable walk from ffff82f601e1000f: >(XEN) L4[0x105] =3D 00000000decea027 5555555555555555 >(XEN) L3[0x1d8] =3D 000000011bffb063 5555555555555555 >(XEN) L2[0x00f] =3D 0000000000000000 ffffffffffffffff=20 >(XEN)=20 >(XEN) **************************************** >(XEN) Panic on CPU 0: >(XEN) FATAL PAGE FAULT >(XEN) [error_code=3D0000] >(XEN) Faulting linear address: ffff82f601e1000f >(XEN) **************************************** While I can't determine the exact source location corresponding to the crash (without the disassembly of the function), the page table walk suggests this is a read from to the M2P table, which imposes a couple of questions: How can this be a non-quad-word aligned access? Is the access, if it makes sense, guarded by an mfn_valid() check? Is the memory address corresponding to the M2P slot (mfn 0x3c20001) in a physical memory hole? Jan