From: Thomas Schwinge Subject: Re: Debian linux-image-2.6.32-4-xen-amd64 2.6.32-11 doesn't boot with > 4 GiB; resets immediatelly, no log messages Date: Sat, 8 May 2010 17:46:36 +0200 Message-ID: <20100508154636.GD4416@kepler.schwinge.homeip.net> References: <20100408113422.GD4183@kepler.schwinge.homeip.net> <20100408133820.GA29832@phenom.dumpdata.com> <20100408221953.GG4183@kepler.schwinge.homeip.net> <4BBE5DF2.6040707@goop.org> <20100409180016.GA14029@kepler.schwinge.homeip.net> <4BBF7004.8000707@goop.org> <20100410221349.GM4183@kepler.schwinge.homeip.net> <4BC1013D.2020003@goop.org> <20100420111818.GA4416@kepler.schwinge.homeip.net> <4BD8A6F6.4020809@goop.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1736821002==" Return-path: In-Reply-To: <4BD8A6F6.4020809@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: xen-devel@lists.xensource.com, Konrad Rzeszutek Wilk , Ian Campbell List-Id: xen-devel@lists.xenproject.org --===============1736821002== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nhYGnrYv1PEJ5gA2" Content-Disposition: inline --nhYGnrYv1PEJ5gA2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello! Sorry for the delay in getting back to this. On Wed, Apr 28, 2010 at 02:21:58PM -0700, Jeremy Fitzhardinge wrote: > On 04/20/2010 04:18 AM, Thomas Schwinge wrote: > > On Sat, Apr 10, 2010 at 03:52:45PM -0700, Jeremy Fitzhardinge wrote: > >> On 04/10/2010 03:13 PM, Thomas Schwinge wrote: > >>>> Normally that would be OK, because it uses: > >>>> > >>>> __get_user(pfn, &machine_to_phys_mapping[mfn]); > >>>> > >>>> to dereference the array. But at this early stage, none of the kern= el's > >>>> exception handlers have been set up, so this will just fault into Xe= n. > >>>> > >>>> It would be interesting to confirm this by building your kernel with > >>>> CONFIG_DEBUG_INFO=3Dy in the .config, and verify that the faulting > >>>> instruction is actually this line. > >>>> =20 > >>> Bingo! > >>> =20 > >> Excellent. Now I just need to work out how to do a proper manual limit > >> check on the mfn. (I've always been a bit suspicious of this code, > >> because there's no guarantee that a random invalid mfn *won't* happen = to > >> return the pfn we're looking for...) >=20 > Does this help? > From: Jeremy Fitzhardinge > Subject: [PATCH] xen/core: don't bother trying to free pages beyond the o= nes Xen gave us >=20 > Signed-off-by: Jeremy Fitzhardinge I put this on top of Debian linux-2.6 2.6.32-11, which is based on f64df18aae5ab07b44bdcc2334cf0044ef46320c of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git. Please tell me if I shall put it on top of another version. The patch does mitigate / hide the problem, as the 100000000 to 120000000 pages are now chopped off (which is not what you intended to do, as I understood it): (XEN) Xen version 3.4.3-rc3 (Debian 3.4.3~rc3-2) (waldi@debian.org) (gc= c version 4.4.3 (Debian 4.4.3-7) ) Thu Apr 8 14:16:43 UTC 2010 (XEN) Command line: com1=3D38400,8n1 vga=3Dcurrent,keep console=3Dcom1,= vga loglvl=3Dall guest_loglvl=3Dall console_to_ring (XEN) Video information: (XEN) VGA is text mode 80x25, font 8x16 (XEN) VBE/DDC methods: V2; EDID transfer time: 1 seconds (XEN) Disc information: (XEN) Found 1 MBR signatures (XEN) Found 1 EDD information structures (XEN) Xen-e820 RAM map: (XEN) 0000000000000000 - 000000000009e000 (usable) (XEN) 000000000009e000 - 00000000000a0000 (reserved) (XEN) 00000000000e4000 - 0000000000100000 (reserved) (XEN) 0000000000100000 - 00000000ddee0000 (usable) (XEN) 00000000ddee0000 - 00000000ddeef000 (ACPI data) (XEN) 00000000ddeef000 - 00000000ddf00000 (ACPI NVS) (XEN) 00000000ddf00000 - 00000000e0000000 (reserved) (XEN) 00000000fec00000 - 00000000fec10000 (reserved) (XEN) 00000000fee00000 - 00000000fee01000 (reserved) (XEN) 00000000fff00000 - 0000000100000000 (reserved) (XEN) 0000000100000000 - 0000000120000000 (usable) (XEN) System RAM: 4062MB (4159992kB) [...] [ 0.000000] Linux version 2.6.32-4-xen-amd64 (Debian 2.6.32-11) (mak= s@debian.org) (gcc version 4.3.4 (Debian 4.3.4-8) ) #1 SMP Thu Apr 29 09:32= :20 CEST 2010 [ 0.000000] Command line: root=3D/dev/mapper/vg0-boole--root ro cons= ole=3Dhvc0 earlyprintk=3Dxen debug [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls [ 0.000000] xen_release_chunk: looking at area pfn e0000-f2804: 7578= 0 pages freed [ 0.000000] released 75780 pages of unused memory [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] Xen: 0000000000000000 - 000000000009e000 (usable) [ 0.000000] Xen: 000000000009e000 - 0000000000100000 (reserved) [ 0.000000] Xen: 0000000000100000 - 00000000ddee0000 (usable) [ 0.000000] Xen: 00000000ddee0000 - 00000000ddeef000 (ACPI data) [ 0.000000] Xen: 00000000ddeef000 - 00000000ddf00000 (ACPI NVS) [ 0.000000] Xen: 00000000ddf00000 - 00000000e0000000 (reserved) [ 0.000000] Xen: 00000000fec00000 - 00000000fec10000 (reserved) [ 0.000000] Xen: 00000000fee00000 - 00000000fee01000 (reserved) [ 0.000000] Xen: 00000000fff00000 - 0000000100000000 (reserved) [ 0.000000] bootconsole [xenboot0] enabled [ 0.000000] DMI present. [ 0.000000] Phoenix BIOS detected: BIOS may corrupt low RAM, working= around it. [ 0.000000] e820 update range: 0000000000000000 - 0000000000010000 (= usable) =3D=3D> (reserved) [ 0.000000] last_pfn =3D 0xddee0 max_arch_pfn =3D 0x400000000 [...] Regards, Thomas --nhYGnrYv1PEJ5gA2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkvlh1kACgkQFaWaPJ2HwArzRACfZStfdFRW/seVkWU7P/K/ZGa2 fvIAmQFoPEuDA0UaMPQI9DnLFrXRPU4Q =vmBq -----END PGP SIGNATURE----- --nhYGnrYv1PEJ5gA2-- --===============1736821002== 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 --===============1736821002==--