This series of tickets is based on https://reviews.freebsd.org/D28270 and https://reviews.freebsd.org/D30954, but with multiple modifications and broken down into smaller pieces. The patch was applied over 0e04dd3b66c053422b90c387f7bbd82a0921bda0.
The first 5 represent the implementation for the warm migration feature for bhyve. It is a wrapper over the save/restore feature and it allows sending the virtual machine state (memory, kernel structures, emulated devices) from a source host to a destination host, over the network.
The features works only for IPv4 guests with similar hardware specifications.
More information regarding the implementation can be found here:
The usage of the feature is detailed here: Virtual Machine Migration using bhyve.
This first part adds command line parameters and parsing for both warm and live migration.