FTMAll.cpp revision dcc57944afcf23c538ec2147f0381e0688168a82
/* $Id$ */
/** @file
* FTM - Fault Tolerance Manager - All contexts
*/
/*
* Copyright (C) 2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_FTM
#include "FTMInternal.h"
#include <VBox/vm.h>
#include <VBox/vmm.h>
#include <VBox/err.h>
#include <VBox/param.h>
#include <VBox/log.h>
#include <iprt/assert.h>
/**
* Sets a checkpoint for syncing the state with the standby node
*
* @returns VBox status code.
*
* @param pVM The VM to operate on.
*/
VMMDECL(int) FTMSetCheckpoint(PVM pVM)
{
if (!pVM->fFaultTolerantMaster)
return VINF_SUCCESS;
#ifdef IN_RING3
return FTMR3SyncState(pVM);
#else
return VERR_NOT_IMPLEMENTED;
#endif
}