Changeset 22263 in vbox for trunk/src/VBox/VMM/HWACCM.cpp
- Timestamp:
- Aug 14, 2009 3:10:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/HWACCM.cpp
r22242 r22263 328 328 */ 329 329 PCFGMNODE pRoot = CFGMR3GetRoot(pVM); 330 331 char *pszOSType = NULL; 332 rc = CFGMR3QueryStringAlloc(pRoot, "OSType", &pszOSType); 333 AssertRC(rc); 334 335 pVM->hwaccm.s.fTRPPatchingAllowed = false; 336 if (pszOSType) 337 { 338 /* @todo Not exactly pretty to check strings; VBOXOSTYPE would be better, but that requires quite a bit of API change in Main. */ 339 if ( !RTStrCmp(pszOSType, "WindowsNT4") 340 || !RTStrCmp(pszOSType, "WindowsNT") 341 || !RTStrCmp(pszOSType, "Windows 2000") 342 || !RTStrCmp(pszOSType, "WindowsXP") 343 || !RTStrCmp(pszOSType, "Windows 2003")) 344 { 345 /* Only allow TPR patching for NT, Win2k, XP and Windows Server 2003. (32 bits mode) 346 * (IO-APIC presence is checked later on in HWACCMR3InitFinalizeR0) 347 * 348 * We may want to consider adding more guest OSes (Solaris) later on. 349 */ 350 pVM->hwaccm.s.fTRPPatchingAllowed = true; 351 } 352 MMR3HeapFree(pszOSType); 353 } 354 330 355 PCFGMNODE pHWVirtExt = CFGMR3GetChild(pRoot, "HWVirtExt/"); 331 356 /* Nested paging: disabled by default. */ … … 646 671 647 672 pVM->hwaccm.s.fHasIoApic = PDMHasIoApic(pVM); 673 /* No TPR patching is required when the IO-APIC is not enabled for this VM. */ 674 if (!pVM->hwaccm.s.fHasIoApic) 675 pVM->hwaccm.s.fTRPPatchingAllowed = false; 648 676 649 677 if (pVM->hwaccm.s.vmx.fSupported)
Note:
See TracChangeset
for help on using the changeset viewer.