ftm.h revision c7814cf6e1240a519cbec0441e033d0e2470ed00
1389N/A/** @file
1389N/A * FTM - Fault Tolerance Manager.
1389N/A */
1389N/A
1389N/A/*
1389N/A * Copyright (C) 2010-2013 Oracle Corporation
1389N/A *
1389N/A * This file is part of VirtualBox Open Source Edition (OSE), as
1389N/A * available from http://www.virtualbox.org. This file is free software;
1389N/A * you can redistribute it and/or modify it under the terms of the GNU
1389N/A * General Public License (GPL) as published by the Free Software
1389N/A * Foundation, in version 2 as it comes in the "COPYING" file of the
1389N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
1389N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
1389N/A *
1389N/A * The contents of this file may alternatively be used under the terms
1389N/A * of the Common Development and Distribution License Version 1.0
1389N/A * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
1389N/A * VirtualBox OSE distribution, in which case the provisions of the
1389N/A * CDDL are applicable instead of those of the GPL.
1389N/A *
1389N/A * You may elect to license modified versions of this file under the
1389N/A * terms and conditions of either the GPL or the CDDL or both.
1389N/A */
1389N/A
1389N/A#ifndef ___VBox_vmm_ftm_h
1389N/A#define ___VBox_vmm_ftm_h
1389N/A
1389N/A#include <VBox/types.h>
1389N/A
1389N/A
1389N/ART_C_DECLS_BEGIN
1389N/A
1389N/A/** @defgroup grp_ftm The Fault Tolerance Monitor / Manager API
1389N/A * @{
1389N/A */
1389N/A
1389N/A/**
1389N/A * Fault tolerance checkpoint type.
1435N/A */
1435N/Atypedef enum FTMCHECKPOINTTYPE
1389N/A{
1389N/A FTMCHECKPOINTTYPE_INVALID = 0,
1389N/A FTMCHECKPOINTTYPE_NETWORK,
1389N/A FTMCHECKPOINTTYPE_STORAGE,
1389N/A FTMCHECKPOINTTYPE_END,
1389N/A FTMCHECKPOINTTYPE_32BIT_HACK = 0x7fffffff
1389N/A} FTMCHECKPOINTTYPE;
1389N/A
1389N/AVMM_INT_DECL(bool) FTMIsDeltaLoadSaveActive(PVM pVM);
1389N/AVMM_INT_DECL(int) FTMSetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType);
1389N/A
1389N/A#ifdef IN_RING3
1389N/A/** @defgroup grp_ftm_r3 The FTM Host Context Ring-3 API
1389N/A * @ingroup grp_ftm
1389N/A * @{
1389N/A */
1389N/AVMMR3DECL(int) FTMR3PowerOn(PUVM pUVM, bool fMaster, unsigned uInterval, const char *pszAddress, unsigned uPort, const char *pszPassword);
1389N/AVMMR3DECL(int) FTMR3CancelStandby(PUVM pUVM);
1389N/A
1389N/AVMMR3_INT_DECL(int) FTMR3Init(PVM pVM);
1389N/AVMMR3_INT_DECL(int) FTMR3Term(PVM pVM);
1389N/AVMMR3_INT_DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType);
1389N/A
1389N/A#endif /* IN_RING3 */
1389N/A
1389N/A/** @} */
1389N/A
1389N/A/** @} */
1389N/A
1389N/ART_C_DECLS_END
1389N/A
1389N/A#endif
1389N/A
1389N/A