Changeset 52110 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Jul 21, 2014 12:53:59 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95132
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/GIM.cpp
r51797 r52110 122 122 AssertLogRelRCReturn(rc, rc); 123 123 if (uGuestOsId < GIMOSID_END) 124 { 124 125 GuestOsId = (GIMOSID)uGuestOsId; 126 pVM->gim.s.enmGuestOsId = GuestOsId; 127 } 125 128 else 126 129 { … … 145 148 { 146 149 pVM->gim.s.enmProviderId = GIMPROVIDERID_MINIMAL; 147 rc = GIMR3MinimalInit(pVM , GuestOsId);150 rc = GIMR3MinimalInit(pVM); 148 151 } 149 152 else if (!RTStrCmp(szProvider, "HyperV")) … … 267 270 rc = SSMR3PutU32(pSSM, pVM->gim.s.u32Version); 268 271 AssertRCReturn(rc, rc); 272 rc = SSMR3PutU32(pSSM, pVM->gim.s.enmGuestOsId); 273 AssertRCReturn(rc, rc); 269 274 270 275 /* … … 320 325 AssertRCReturn(rc, rc); 321 326 rc = SSMR3GetU32(pSSM, &pVM->gim.s.u32Version); 327 AssertRCReturn(rc, rc); 328 rc = SSMR3GetU32(pSSM, (uint32_t *)&pVM->gim.s.enmGuestOsId); 322 329 AssertRCReturn(rc, rc); 323 330 … … 603 610 604 611 /** 605 * Checks if the given Guest OS identifier implies an OS X family of guests. 612 * Checks if the GIM Guest OS identifier for this VM implies an OS X family of 613 * guests. 606 614 * 607 615 * @returns true if it's an OS X guest, false otherwise. 608 * @param enmGuestOs The Guest OS Id.609 */ 610 VMMR3_INT_DECL(bool) GIMR3IsOSXGuest( GIMOSID enmGuestOs)611 { 612 switch ( enmGuestOs)616 * @param pVM Pointer to the VM. 617 */ 618 VMMR3_INT_DECL(bool) GIMR3IsOSXGuest(PVM pVM) 619 { 620 switch (pVM->gim.s.enmGuestOsId) 613 621 { 614 622 case GIMOSID_OSX: -
trunk/src/VBox/VMM/VMMR3/GIMHv.cpp
r52027 r52110 659 659 { 660 660 /** @todo Handle raw-mode hypercall page patching. */ 661 LogRel(("GIM: HyperV: Raw-mode not yet implemented!\n"));661 LogRel(("GIM: HyperV: Raw-mode hypercalls not yet implemented!\n")); 662 662 } 663 663 GIMR3Mmio2Unmap(pVM, pRegion); -
trunk/src/VBox/VMM/VMMR3/GIMMinimal.cpp
r52009 r52110 33 33 *******************************************************************************/ 34 34 35 VMMR3_INT_DECL(int) GIMR3MinimalInit(PVM pVM , GIMOSID enmGuest)35 VMMR3_INT_DECL(int) GIMR3MinimalInit(PVM pVM) 36 36 { 37 37 AssertReturn(pVM, VERR_INVALID_PARAMETER); … … 43 43 CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_HVP); 44 44 45 if (GIMR3IsOSXGuest( enmGuest))45 if (GIMR3IsOSXGuest(pVM)) 46 46 { 47 47 /* … … 58 58 { 59 59 uint32_t uMaxIntelFamilyModelStep = UINT32_MAX; 60 switch ( enmGuest)60 switch (pVM->gim.s.enmGuestOsId) 61 61 { 62 62 case GIMOSID_OSX:
Note:
See TracChangeset
for help on using the changeset viewer.