Changeset 20057 in vbox for trunk/src/VBox/VMM
- Timestamp:
- May 27, 2009 7:35:46 AM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/HWACCM.cpp
r20035 r20057 307 307 * Register the saved state data unit. 308 308 */ 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), 310 310 NULL, hwaccmR3Save, NULL, 311 311 NULL, hwaccmR3Load, NULL); … … 1697 1697 } 1698 1698 1699 rc = SSMR3PutBool(pSSM, pVM->hwaccm.s.svm.fTPRPatching);1700 AssertRCReturn(rc, rc);1701 1702 1699 return VINF_SUCCESS; 1703 1700 } … … 1720 1717 * Validate version. 1721 1718 */ 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) 1725 1721 { 1726 1722 AssertMsgFailed(("hwaccmR3Load: Invalid version u32Version=%d!\n", u32Version)); … … 1736 1732 AssertRCReturn(rc, rc); 1737 1733 1738 if (u32Version >= HWACCM_SSM_VERSION _2_2_X)1734 if (u32Version >= HWACCM_SSM_VERSION) 1739 1735 { 1740 1736 uint32_t val; … … 1753 1749 } 1754 1750 } 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 1762 1751 return VINF_SUCCESS; 1763 1752 } -
trunk/src/VBox/VMM/HWACCMInternal.h
r20035 r20057 135 135 /** HWACCM SSM version 136 136 */ 137 #define HWACCM_SSM_VERSION_3_0_X 5 138 #define HWACCM_SSM_VERSION_2_2_X 4 137 #define HWACCM_SSM_VERSION 4 139 138 #define HWACCM_SSM_VERSION_2_0_X 3 140 139 … … 341 340 /** Set if erratum 170 affects the AMD cpu. */ 342 341 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]; 345 345 346 346 /** R0 memory object for the host VM control block (VMCB). */
Note:
See TracChangeset
for help on using the changeset viewer.