From: "Jan Beulich" Subject: kexec design issues Date: Thu, 12 Mar 2009 14:49:50 +0000 Message-ID: <49B92F1E.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org As I became aware of only now (by way of a bug report), Linux side kexec changes on i386 silently broke assumptions in the kexec hypercall = interface. Therefore I'd like to get an understanding on what the general perspective on the following problems is: 1) machine_kexec_load() silently assumes that page_list[] has alternating (and paired) physical/virtual entries. This is no longer valid with = 2.6.27, and while the immediate fix is to re-arrange the list entries so that the = newly added entry would end up after all pairs (in 2.6.29 an extra gap will need to be added), this points out that the interface definition itself is = really flawed. 2) KEXEC_XEN_NO_PAGES is set to the apparently arbitrary value of 17. While a build error would clearly show any incompatible Linux side change in this case, it still seems bogus to hard-code this Linux defined value = into the hypercall interface. 3) machine_kexec_load() blindly iterates over all page_list[] entries, regardless of whether any of them is zero, and hence establishes (currently on 32-bit only) numerous bogus page table entries mapping mfn 0. Thanks for any comments, Jan