HomeFreeBSD

kern: Introduce kexec system feature (MI)

Description

kern: Introduce kexec system feature (MI)

Introduce a new system call and reboot method to support booting a new
kernel directly from FreeBSD.

Linux has included a system call, kexec_load(), since 2005, which
permits booting a new kernel at reboot instead of requiring a full
reboot cycle through the BIOS/firmware. This change brings that same
system call to FreeBSD. Other changesets will add the MD components for
some of our architectures, with stubs for the rest until the MD
components have been written.

kexec_load() supports loading up to an arbitrary limit of 16 memory
segments. These segments must be contained inside memory bounded in
vm_phys_segs (vm.phys_segs sysctl), and a segment must be contained
within a single vm.phys_segs segment, cannot cross adjacent segments.

Reviewed by: imp, kib
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D51619

Details

Provenance
jhibbitsAuthored on Sun, Oct 26, 2:44 AM
Reviewer
imp
Differential Revision
D51619: kern: Introduce kexec system feature (MI)
Parents
rG190d0a96cf56: amd64: Add cpu_stop() support to go UP after SMP
Branches
Unknown
Tags
Unknown