WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] kexec design issues

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] kexec design issues
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Thu, 12 Mar 2009 14:49:50 +0000
Delivery-date: Thu, 12 Mar 2009 07:49:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>