From: Ian Campbell Subject: Re: Bug#599089: linux-image-2.6.32-5-xen-686: Kernel Panics when using NFS from DomU to Dom0 Date: Tue, 05 Oct 2010 19:22:47 +0100 Message-ID: <1286302967.10974.1.camel@localhost.localdomain> References: <4CA9EF03.20407@gmail.com> <1286272060.23155.7508.camel@zakaz.uk.xensource.com> <1286272348.23155.7527.camel@zakaz.uk.xensource.com> <4CAB584A.7090909@goop.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1278974402==" Return-path: In-Reply-To: <4CAB584A.7090909@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: 599089@bugs.debian.org, xen-devel , Arnd Hannemann , Jason Kendall List-Id: xen-devel@lists.xenproject.org --===============1278974402== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Fj/qjV3ttTd//nqusYXx" --=-Fj/qjV3ttTd//nqusYXx Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable On Tue, 2010-10-05 at 09:54 -0700, Jeremy Fitzhardinge wrote:=20 > On 10/05/2010 02:52 AM, Ian Campbell wrote: > > On Tue, 2010-10-05 at 10:47 +0100, Ian Campbell wrote: > >> In addition to the kernel logging of the error I get this from the > >> hypervisor: > >> (XEN) mm.c:2062:d0 Error pfn 16d99: rd=3Dffff83011fefa000, > >> od=3D0000000000000000, caf=3D180000000000000, taf=3D0000000000000000 > >> (XEN) mm.c:658:d0 Could not get page ref for pfn 16d99 > >> (XEN) mm.c:3621:d0 Could not get page for mach->phys update > > Adding a bit more logging to the kernel I get: > > gnttb_copy_grant_page old c22ebcd8 P:0x1ec8e M:0xc499d F:0x41000000 > > gnttb_copy_grant_page new c2324ce0 P:0x1fe18 M:0x11cd32 F:0x40000000 > > (XEN) mm.c:2062:d0 Error pfn 1cd32: rd=3Dffff83011fefa000, od=3D0000000= 000000000, caf=3D180000000000000, taf=3D0000000000000000 > > (XEN) mm.c:658:d0 Could not get page ref for pfn 1cd32 > > (XEN) mm.c:3621:d0 Could not get page for mach->phys update > > > > Notice how MFN 0x11cd32 has become 0x1cd32 by the time it gets to the > > hypervisor! >=20 > Oy, more of these. It might be better to use PFN_PHYS(). I thought there ought to be a helper but couldn't find one, PFN_PHYS sounds like a good bet, unless we want to alias it as MFN_MACH or something? > J >=20 > > The following fixes it for me. > > > > From: Ian Campbell > > Subject: xen: grant table: do not truncate machine address on gnttab_co= py_grant_page > > > > Signed-off-by: Ian Campbell > > > > --- a/drivers/xen/grant-table.c > > +++ b/drivers/xen/grant-table.c > > @@ -578,7 +578,7 @@ int gnttab_copy_grant_page(grant_ref_t ref, struct = page **pagep) > > if (!xen_feature(XENFEAT_auto_translated_physmap)) { > > set_phys_to_machine(page_to_pfn(new_page), INVALID_P2M_ENTRY); > > =20 > > - mmu.ptr =3D (new_mfn << PAGE_SHIFT) | MMU_MACHPHYS_UPDATE; > > + mmu.ptr =3D ((u64)new_mfn << PAGE_SHIFT) | MMU_MACHPHYS_UPDATE; > > mmu.val =3D pfn; > > err =3D HYPERVISOR_mmu_update(&mmu, 1, NULL, DOMID_SELF); > > BUG_ON(err); > > >=20 >=20 --=20 Ian Campbell "Not Hercules could have knock'd out his brains, for he had none." -- Shakespeare --=-Fj/qjV3ttTd//nqusYXx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkyrbPcACgkQM0+0qS9rzVnCMQCg43ewUOwC5M1LhEnptGkZC/r8 t9QAnAzPc2kzWSOL+FRQ+6VwoHhLMAYK =iK9K -----END PGP SIGNATURE----- --=-Fj/qjV3ttTd//nqusYXx-- --===============1278974402== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1278974402==--