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 woes with 32-bit secondary kernel

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] kexec woes with 32-bit secondary kernel
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Fri, 17 Sep 2010 16:49:38 +0100
Delivery-date: Fri, 17 Sep 2010 08:49:57 -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
Ever since c/s 13829, the native (32-bit -> 32-bit) call to invoke the
secondary kernel has been missing its fourth argument. Apparently
this worked out because the respective stack location was non-zero.

Starting with Linux 2.6.27 (32-bit) and 2.6.30 (64-bit) a new
argument is being expected by the secondary kernel, and again
apparently out of pure luck the 64-bit -> 64-bit case still appears
to work for those of our customers who want to use it.

The question really is whether this code has ever been tested
with sufficiently recent kernels in all three variants (32->32, 64->64,
and 64->32).

While it seems that putting together a patch to address this
shouldn't be that difficult, a second question is how we can avoid
getting into the same situation again when Linux extends the
protocol again.

Thanks, Jan


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