Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kexec: don't use kexec_file_load on XEN
Since commit 29fe506 ("kexec: make -a the default") kexec tries the kexec_file_load syscall first and only falls back to kexec_load on selected error codes. This effectively breaks kexec on XEN, unless -c is pecified to force the kexec_load syscall. The XEN-specific functions (xen_kexec_load / xen_kexec_unload) are only called from my_load / k_unload, i.e. the kexec_load code path. With -p (panic kernel) kexec_file_load on XEN fails with -EADDRNOTAVAIL (crash kernel reservation is ignored by the kernel on XEN), which is not in the list of return codes that cause the fallback to kexec_file. Without -p kexec_file_load actualy leads to a kernel oops on v6.4.0 (needs to be dubugged separately). Signed-off-by: Jiri Bohac <jbohac@suse.cz> Fixes: 29fe506 ("kexec: make -a the default") Signed-off-by: Simon Horman <horms@kernel.org>
- Loading branch information