VirtualBox

source: vbox/trunk/src/VBox/VMM/FTMInternal.h@ 31782

Last change on this file since 31782 was 31782, checked in by vboxsync, 15 years ago

FT updates

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/* $Id: FTMInternal.h 31782 2010-08-19 11:18:51Z vboxsync $ */
2/** @file
3 * FTM - Internal header file.
4 */
5
6/*
7 * Copyright (C) 2010 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ___FTMInternal_h
19#define ___FTMInternal_h
20
21#include <VBox/cdefs.h>
22#include <VBox/types.h>
23#include <VBox/ftm.h>
24#include <VBox/stam.h>
25#include <VBox/pdmcritsect.h>
26#include <iprt/tcp.h>
27#include <iprt/semaphore.h>
28
29/** @defgroup grp_ftm_int Internals.
30 * @ingroup grp_ftm
31 * @{
32 */
33
34
35/**
36 * FTM VM Instance data.
37 * Changes to this must checked against the padding of the ftm union in VM!
38 */
39typedef struct FTM
40{
41 /** Address of the standby VM. */
42 char *pszAddress;
43 /** Password to access the syncing server of the standby VM. */
44 char *pszPassword;
45 /** Port of the standby VM. */
46 unsigned uPort;
47 /** Syncing interval in ms. */
48 unsigned uInterval;
49
50 /** Set when this VM is the standby FT node. */
51 bool fIsStandbyNode;
52 bool fAlignment[7];
53
54 /** Current active socket. */
55 RTSOCKET hSocket;
56
57 struct
58 {
59 PRTTCPSERVER hServer;
60 } standby;
61
62 struct
63 {
64 RTSEMEVENT hShutdownEvent;
65 } master;
66
67 /** FTm critical section.
68 * This makes sure only the checkpoint or sync is active
69 */
70 PDMCRITSECT CritSect;
71
72 STAMCOUNTER StatReceivedMem;
73 STAMCOUNTER StatReceivedState;
74 STAMCOUNTER StatSentMem;
75 STAMCOUNTER StatSentState;
76} FTM;
77
78/** @} */
79
80#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette