[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] kimage: Allow load/exec for images with KEXEC_TYPE_LIVE_UPDATE
Do not -EINVAL on loading/execing an image if kexec type is KEXEC_TYPE_LIVE_UPDATE. Signed-off-by: Varad Gautam <vrd@xxxxxxxxx> CC: David Woodhouse <dwmw@xxxxxxxxxxxx> --- xen/common/kimage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/common/kimage.c b/xen/common/kimage.c index 86d2797..599aa74 100644 --- a/xen/common/kimage.c +++ b/xen/common/kimage.c @@ -421,6 +421,7 @@ struct page_info *kimage_alloc_control_page(struct kexec_image *image, switch ( image->type ) { case KEXEC_TYPE_DEFAULT: + case KEXEC_TYPE_LIVE_UPDATE: pages = kimage_alloc_normal_control_page(image, memflags); break; case KEXEC_TYPE_CRASH: @@ -775,6 +776,7 @@ static int kimage_load_segment(struct kexec_image *image, xen_kexec_segment_t *s switch ( image->type ) { case KEXEC_TYPE_DEFAULT: + case KEXEC_TYPE_LIVE_UPDATE: result = kimage_load_normal_segment(image, segment); break; case KEXEC_TYPE_CRASH: @@ -803,6 +805,7 @@ int kimage_alloc(struct kexec_image **rimage, uint8_t type, uint16_t arch, switch( type ) { case KEXEC_TYPE_DEFAULT: + case KEXEC_TYPE_LIVE_UPDATE: result = kimage_normal_alloc(rimage, entry_maddr, nr_segments, segment); break; case KEXEC_TYPE_CRASH: -- 2.7.4 Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |