[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 4/8] kexec: add infrastructure for handling kexec images



On 08/03/13 11:37, Daniel Kiper wrote:
> On Thu, Feb 21, 2013 at 05:48:10PM +0000, David Vrabel wrote:
>> From: David Vrabel <david.vrabel@xxxxxxxxxx>
>>
>> Add the code needed to handle and load kexec images into Xen memory or
>> into the crash region.  This is needed for the new KEXEC_CMD_load and
>> KEXEC_CMD_unload hypercall sub-ops.
>>
>> Much of this code is derived from the Linux kernel.
>>
>> Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx>
> 
> [...]
> 
>> diff --git a/xen/common/kimage.c b/xen/common/kimage.c
> 
> [...]
> 
>> +static int kimage_load_segment(struct kexec_image *image, 
>> xen_kexec_segment_t *segment)
>> +{
>> +    int result = -ENOMEM;
> 
> Somewhere should be a check that arhitecture of loaded image
> is compatible with arhitecture on which we currently running.

See machine_kexec_load() in patch 5.

David

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.