Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/migration.h
| Show All 27 Lines | |||||
| * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
| * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
| * SUCH DAMAGE. | * SUCH DAMAGE. | ||||
| */ | */ | ||||
| #ifndef _BHYVE_MIGRATION_ | #ifndef _BHYVE_MIGRATION_ | ||||
| #define _BHYVE_MIGRATION_ | #define _BHYVE_MIGRATION_ | ||||
| #include <ucl.h> | |||||
| #include <machine/vmm_dev.h> | #include <machine/vmm_dev.h> | ||||
| #include <vmmapi.h> | #include <vmmapi.h> | ||||
| #include "snapshot.h" | #include "snapshot.h" | ||||
| struct vmctx; | struct vmctx; | ||||
| int receive_vm_migration(struct vmctx *ctx, char *migration_data); | int receive_vm_migration(struct vmctx *ctx, char *migration_data); | ||||
| Show All 29 Lines | |||||
| }; | }; | ||||
| struct __attribute__((packed)) migration_system_specs { | struct __attribute__((packed)) migration_system_specs { | ||||
| char hw_machine[MAX_SPEC_LEN]; | char hw_machine[MAX_SPEC_LEN]; | ||||
| char hw_model[MAX_SPEC_LEN]; | char hw_model[MAX_SPEC_LEN]; | ||||
| size_t hw_pagesize; | size_t hw_pagesize; | ||||
| }; | }; | ||||
| int vm_send_migrate_req(struct vmctx *ctx, struct migrate_req req); | int vm_send_migrate_req(struct vmctx *ctx, struct migrate_req req, bool live); | ||||
| int vm_recv_migrate_req(struct vmctx *ctx, struct migrate_req req); | int vm_recv_migrate_req(struct vmctx *ctx, struct migrate_req req); | ||||
| #endif | #endif | ||||