summaryrefslogtreecommitdiffstats
path: root/kexec/kexec-xen.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/kexec-xen.c')
-rw-r--r--kexec/kexec-xen.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/kexec/kexec-xen.c b/kexec/kexec-xen.c
index afcfc5b8..83629baf 100644
--- a/kexec/kexec-xen.c
+++ b/kexec/kexec-xen.c
@@ -177,8 +177,12 @@ int xen_kexec_load(struct kexec_info *info)
seg++;
}
- type = (info->kexec_flags & KEXEC_ON_CRASH) ? KEXEC_TYPE_CRASH
- : KEXEC_TYPE_DEFAULT;
+ if (info->kexec_flags & KEXEC_ON_CRASH)
+ type = KEXEC_TYPE_CRASH;
+ else if (info->kexec_flags & KEXEC_LIVE_UPDATE )
+ type = KEXEC_TYPE_LIVE_UPDATE;
+ else
+ type = KEXEC_TYPE_DEFAULT;
arch = (info->kexec_flags & KEXEC_ARCH_MASK) >> 16;
#if defined(__i386__) || defined(__x86_64__)