VirtualBox

Changeset 20057 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 27, 2009 7:35:46 AM (16 years ago)
Author:
vboxsync
Message:

Backed out 47767 (breaks saved states from yesterday)

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCM.cpp

    r20035 r20057  
    307307     * Register the saved state data unit.
    308308     */
    309     int rc = SSMR3RegisterInternal(pVM, "HWACCM", 0, HWACCM_SSM_VERSION_3_0_X, sizeof(HWACCM),
     309    int rc = SSMR3RegisterInternal(pVM, "HWACCM", 0, HWACCM_SSM_VERSION, sizeof(HWACCM),
    310310                                   NULL, hwaccmR3Save, NULL,
    311311                                   NULL, hwaccmR3Load, NULL);
     
    16971697    }
    16981698
    1699     rc = SSMR3PutBool(pSSM, pVM->hwaccm.s.svm.fTPRPatching);
    1700     AssertRCReturn(rc, rc);
    1701 
    17021699    return VINF_SUCCESS;
    17031700}
     
    17201717     * Validate version.
    17211718     */
    1722     if (   u32Version != HWACCM_SSM_VERSION_2_2_X
    1723         && u32Version != HWACCM_SSM_VERSION_2_0_X
    1724         && u32Version != HWACCM_SSM_VERSION_3_0_X)
     1719    if (   u32Version != HWACCM_SSM_VERSION
     1720        && u32Version != HWACCM_SSM_VERSION_2_0_X)
    17251721    {
    17261722        AssertMsgFailed(("hwaccmR3Load: Invalid version u32Version=%d!\n", u32Version));
     
    17361732        AssertRCReturn(rc, rc);
    17371733
    1738         if (u32Version >= HWACCM_SSM_VERSION_2_2_X)
     1734        if (u32Version >= HWACCM_SSM_VERSION)
    17391735        {
    17401736            uint32_t val;
     
    17531749        }
    17541750    }
    1755 
    1756     if (u32Version >= HWACCM_SSM_VERSION_3_0_X)
    1757     {
    1758         rc = SSMR3GetBool(pSSM, &pVM->hwaccm.s.svm.fTPRPatching);
    1759         AssertRCReturn(rc, rc);
    1760     }
    1761 
    17621751    return VINF_SUCCESS;
    17631752}
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r20035 r20057  
    135135/** HWACCM SSM version
    136136 */
    137 #define HWACCM_SSM_VERSION_3_0_X            5
    138 #define HWACCM_SSM_VERSION_2_2_X            4
     137#define HWACCM_SSM_VERSION                  4
    139138#define HWACCM_SSM_VERSION_2_0_X            3
    140139
     
    341340        /** Set if erratum 170 affects the AMD cpu. */
    342341        bool                        fAlwaysFlushTLB;
    343         /** Set if we're patching 32 bits guests to get rid of TPR access overhead. */
    344         bool                        fTPRPatching;
     342        /** Explicit alignment padding to make 32-bit gcc align u64RegisterMask
     343         *  naturally. */
     344        bool                        padding[1];
    345345
    346346        /** R0 memory object for the host VM control block (VMCB). */
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