Skip to content

RFC Improve kexec support in Xen hypervisor

David Vrabel kexec xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 36 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kexec: extend hypercall with improved load/unload opsxen/arch/x86/machine_kexec.c xen/arch/x86/x86_64/compat_kexec.S xen/common/kexec.c +2 more+255 -1090 replies
1/3kexec: extend hypercall with improved load/unload opsxen/arch/x86/machine_kexec.c xen/arch/x86/x86_64/compat_kexec.S xen/common/kexec.c +2 more+255 -10915 replies
2/3kexec: remove kexec_load and kexec_unload opsxen/common/kexec.c xen/include/public/kexec.h xen/include/xlat.lst+2 -1170 replies
2/3kexec: remove kexec_load and kexec_unload opsxen/common/kexec.c xen/include/public/kexec.h xen/include/xlat.lst+2 -1170 replies
3/3libxc: add API for kexec hypercalltools/libxc/Makefile tools/libxc/xc_kexec.c tools/libxc/xenctrl.h+174 -00 replies
3/3libxc: add API for kexec hypercalltools/libxc/Makefile tools/libxc/xc_kexec.c tools/libxc/xenctrl.h+174 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] Improve kexec support in Xen hypervisor

This series of patches improves the kexec hypercall in the Xen hypervisor. It is an incomplete prototype but I posting it early for comments on the proposed ABI/API.

This allows a privileged Xen guest to load kexec images into the hypervisor from a userspace tool without using the Linux kernel's kexec subsystem. It is the first step to supporting kexec of crash kernels from a pv-ops dom0 kernel (the required kernel and kexec-tools patches will be posted later).

The kernel will require a kexec hypercall somewhere in the crash_kexec() path to actually exec the loaded image. Any preferences on how the hook for this should be implemented? Note that the kernel won't be aware that an image as been loaded as it is loaded directly into the hypervisor and not via the kernel's kexec_load system call.

Since the kexec hypercall is for use by dom0 I have removed the implementation of the old load/unload ops and thus guests will require updated kexec-tools to load images. Is this acceptable?

David

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec