VirtualBox

Changeset 14887 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 2, 2008 10:15:21 AM (16 years ago)
Author:
vboxsync
Message:

Disallow any mixed use of hwaccm & software virtualization. Don't override the setting anymore.

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

Legend:

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

    r14878 r14887  
    338338        {
    339339            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");
    344342            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");
    349345        }
    350346        else
    351             VMSetRuntimeError(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;
    354350#endif /* !RT_OS_DARWIN */
    355351    }
  • trunk/src/VBox/VMM/PATM/PATMSSM.cpp

    r14885 r14887  
    707707#endif
    708708
    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         else
    717             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 
    722709    return VINF_SUCCESS;
    723710}
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