Changeset 14887 in vbox for trunk/src/VBox
- Timestamp:
- Dec 2, 2008 10:15:21 AM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/HWACCM.cpp
r14878 r14887 338 338 { 339 339 if (pVM->hwaccm.s.vmx.fSupported) 340 VMSetRuntimeError(pVM, false, "HwAccmModeChangeDisallowed", 341 "An active VM already uses Intel VT-x hardware acceleration. It is not allowed " 342 "to simultaneously use software virtualization, therefore this VM will be run " 343 "using VT-x as well.\n"); 340 VM_SET_ERROR(pVM, rc, "An active VM already uses Intel VT-x hardware acceleration. It is not allowed " 341 "to simultaneously use software virtualization.\n"); 344 342 else 345 VMSetRuntimeError(pVM, false, "HwAccmModeChangeDisallowed", 346 "An active VM already uses AMD-V hardware acceleration. It is not allowed to " 347 "simultaneously use software virtualization, therefore this VM will be run " 348 "using AMD-V as well.\n"); 343 VM_SET_ERROR(pVM, rc, "An active VM already uses AMD-V hardware acceleration. It is not allowed to " 344 "simultaneously use software virtualization.\n"); 349 345 } 350 346 else 351 VM SetRuntimeError(pVM, false, "HwAccmModeChangeDisallowed",352 "An active VM already uses software virtualization. It is not allowed to simultaneously "353 "use VT-x or AMD-V, therefore this VM will be run using software virtualization as well.\n");347 VM_SET_ERROR(pVM, rc, "An active VM already uses software virtualization. It is not allowed to simultaneously " 348 "use VT-x or AMD-V.\n"); 349 return rc; 354 350 #endif /* !RT_OS_DARWIN */ 355 351 } -
trunk/src/VBox/VMM/PATM/PATMSSM.cpp
r14885 r14887 707 707 #endif 708 708 709 /* We can't allow a patched VM to be restored when we're currently forced to use VT-x, because another VT-x VM is already running. */710 if ( PATMIsEnabled(pVM)711 && HWACCMIsEnabled(pVM))712 {713 if (CPUMGetCPUVendor(pVM) == CPUMCPUVENDOR_AMD)714 VM_SET_ERROR(pVM, rc, "An active VM already uses AMD-V hardware acceleration. It is not "715 "allowed to simultaneously use software virtualization.\n");716 else717 VM_SET_ERROR(pVM, rc, "An active VM already uses Intel VT-x hardware acceleration. It is not "718 "allowed to simultaneously use software virtualization.\n");719 return VERR_ACCESS_DENIED;720 }721 722 709 return VINF_SUCCESS; 723 710 }
Note:
See TracChangeset
for help on using the changeset viewer.