VirtualBox

Changeset 31732 in vbox for trunk


Ignore:
Timestamp:
Aug 17, 2010 1:51:51 PM (14 years ago)
Author:
vboxsync
Message:

FT updates

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/ftm.h

    r31723 r31732  
    4141 * @{
    4242 */
    43 VMMR3DECL(int) FTMR3PowerOn(PVM pVM, bool fSource, unsigned uInterval, const char *pszAddress, unsigned uPort);
     43VMMR3DECL(int) FTMR3PowerOn(PVM pVM, bool fMaster, unsigned uInterval, const char *pszAddress, unsigned uPort);
    4444
    4545#endif /* IN_RING3 */
  • trunk/include/VBox/vm.h

    r31359 r31732  
    787787     * This is initialized together with the rest of the VM structure. */
    788788    bool                        fHwVirtExtForced;
    789     /** PARAV enabled flag. */
    790     bool                        fPARAVEnabled;
     789    /** Set when this VM is the master FT node. */
     790    bool                        fFaultTolerantMaster;
    791791    /** Large page enabled flag. */
    792792    bool                        fUseLargePages;
     
    962962    } ssm;
    963963
     964    /** FTM part. */
     965    union
     966    {
     967#ifdef ___FTMInternal_h
     968        struct FTM  s;
     969#endif
     970        uint8_t     padding[128];        /* multiple of 64 */
     971    } ftm;
     972
    964973    /** REM part. */
    965974    union
     
    9911000    } cfgm;
    9921001
    993     /** PARAV part. */
    994     union
    995     {
    996 #ifdef ___PARAVInternal_h
    997         struct PARAV s;
    998 #endif
    999         uint8_t     padding[24];        /* multiple of 8 */
    1000     } parav;
    1001 
    10021002    /** Padding for aligning the cpu array on a page boundrary. */
    1003     uint8_t         abAlignment2[1992];
     1003    uint8_t         abAlignment2[1886];
    10041004
    10051005    /* ---- end small stuff ---- */
  • trunk/include/VBox/vm.mac

    r31359 r31732  
    7171    .fHWACCMEnabled         resb 1
    7272    .fHwVirtExtForced       resb 1
    73     .fPARAVEnabled          resb 1
     73    .fFaultTolerantMaster   resb 1
     74    .fUseLargePages         resb 1
    7475
    7576    alignb 8
  • trunk/src/VBox/VMM/FTM.cpp

    r31723 r31732  
    55
    66/*
    7  * Copyright (C) 2008 Oracle Corporation
     7 * Copyright (C) 2010 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2525#include <VBox/err.h>
    2626#include <VBox/param.h>
    27 #include <VBox/ftm.h>
     27#include "FTMInternal.h"
    2828
    2929#include <iprt/assert.h>
     
    3131
    3232
     33/**
     34 * Powers on the fault tolerant virtual machine.
     35 *
     36 * @returns VBox status code.
     37 *
     38 * @param   pVM         The VM to power on.
     39 * @param   fMaster     FT master or clone
     40 * @param   uInterval   FT sync interval
     41 * @param   pszAddress  Master VM address
     42 * @param   uPort       Master VM port
     43 *
     44 * @thread      Any thread.
     45 * @vmstate     Created
     46 * @vmstateto   PoweringOn+Running (master), PoweringOn+Running_FT (clone)
     47 */
     48VMMR3DECL(int) FTMR3PowerOn(PVM pVM, bool fMaster, unsigned uInterval, const char *pszAddress, unsigned uPort)
     49{
     50    VMSTATE enmVMState = VMR3GetState(pVM);
     51    AssertMsgReturn(enmVMState == VMSTATE_POWERING_ON,
     52                    ("%s\n", VMR3GetStateName(enmVMState)),
     53                    VERR_INTERNAL_ERROR_4);
    3354
    34 VMMR3DECL(int) FTMR3PowerOn(PVM pVM, bool fSource, unsigned uInterval, const char *pszAddress, unsigned uPort)
    35 {
     55    if (fMaster)
     56    {
     57        return VMR3PowerOn(pVM);
     58    }
     59    else
     60    {
     61        /* clone */
     62    }
    3663    return VERR_NOT_IMPLEMENTED;
    3764}
Note: See TracChangeset for help on using the changeset viewer.

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