VirtualBox

儲存庫 vbox 的更動 101471


忽略:
時間撮記:
2023-10-17 上午10:33:37 (17 月 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
159540
訊息:

Main: Don't allow creating non-x86 VMs on x86. bugref:10384

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r101461 r101471  
    22362236                                  ComPtr<IMachine> &aMachine)
    22372237{
     2238    if (aArchitecture == PlatformArchitecture_None)
     2239        return setError(E_INVALIDARG, tr("'Must specify a valid platform architecture"));
     2240
    22382241    LogFlowThisFuncEnter();
    22392242    LogFlowThisFunc(("aSettingsFile=\"%s\", aName=\"%s\", aArchitecture=%#x, aOsTypeId =\"%s\", aCreateFlags=\"%s\"\n",
    22402243                     aSettingsFile.c_str(), aName.c_str(), aArchitecture, aOsTypeId.c_str(), aFlags.c_str()));
     2244
     2245#if defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64)
     2246    if (aArchitecture != PlatformArchitecture_x86)/* x86 hosts only allows creating x86 VMs for now. */
     2247        return setError(VBOX_E_PLATFORM_ARCH_NOT_SUPPORTED, tr("'Creating VMs for platform architecture %s not supported on %s"),
     2248                        Global::stringifyPlatformArchitecture(aArchitecture),
     2249                        Global::stringifyPlatformArchitecture(PlatformArchitecture_x86));
     2250#endif
    22412251
    22422252    StringsList llGroups;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette