Hi,
Reserving the crashkernel area fails on x86_64 machines with more than
one GB of main memory. The reason for this is that xen maps the
complete physical memory. For memory above 1G (which is covered by the
initial boot mappings) additional page tables are allocated, which
happed to be taken from the crashkernel area. Bummer.
The attached patch fixes that by taking care that the boot allocater
doesn''t give out pages from the crash kernel area. It does also take
care that the crash kernel area doesn''t overlap with the xen heap and
moves crash kernel area it if needed.
A side effect of the second change is that you can specify just
"crashkernel=64m" and have it moved to the right place just above the
xen heap automagically.
please apply,
Gerd
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
Keir Fraser
2007-Jun-25 18:26 UTC
Re: [Xen-devel] [patch] crashkernel allocation failure #2
On 22/6/07 10:46, "Gerd Hoffmann" <kraxel@redhat.com> wrote:> A side effect of the second change is that you can specify just > "crashkernel=64m" and have it moved to the right place just above the > xen heap automagically.Does this really work in practice (i.e., is the crashkernel relocatable)? -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Gerd Hoffmann
2007-Jun-26 06:54 UTC
Re: [Xen-devel] [patch] crashkernel allocation failure #2
Keir Fraser wrote:> On 22/6/07 10:46, "Gerd Hoffmann" <kraxel@redhat.com> wrote: > >> A side effect of the second change is that you can specify just >> "crashkernel=64m" and have it moved to the right place just above the >> xen heap automagically. > > Does this really work in practice (i.e., is the crashkernel relocatable)?Patches floating around for quite some time, i386 is mainline already. Not fully sure about x86_64, but I think it they are merged too. So any recent mainline kernel as crash kernel should do (and a separate crash kernel isn''t needed too). Also with the default xenheap size the crashkernel ends up at @16m, which is a common location for pre-relocation crash kernels, so it should work with older kernels just fine too. Of course you still have the option to explicitly specify the location ... cheers, Gerd _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel