VirtualBox

Changeset 57524 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Aug 25, 2015 10:20:15 AM (9 years ago)
Author:
vboxsync
Message:

Main: NVMe integration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r57280 r57524  
    35893589            sctl.controllerType = StorageControllerType_USB;
    35903590        }
     3591        else if (strType == "NVMe")
     3592        {
     3593            sctl.storageBus = StorageBus_PCIe;
     3594            sctl.controllerType = StorageControllerType_NVMe;
     3595        }
    35913596        else
    35923597            throw ConfigFileError(this, pelmController, N_("Invalid value '%s' for StorageController/@type attribute"), strType.c_str());
     
    50975102            case StorageControllerType_LsiLogicSas: pcszType = "LsiLogicSas"; break;
    50985103            case StorageControllerType_USB: pcszType = "USB"; break;
     5104            case StorageControllerType_NVMe: pcszType = "NVMe"; break;
    50995105            default: /*case StorageControllerType_PIIX3:*/ pcszType = "PIIX3"; break;
    51005106        }
     
    55805586void MachineConfigFile::bumpSettingsVersionIfNeeded()
    55815587{
     5588    if (m->sv < SettingsVersion_v1_16)
     5589    {
     5590        // VirtualBox 5.1 adds a NVMe storage controller.
     5591        for (StorageControllersList::const_iterator it = storageMachine.llStorageControllers.begin();
     5592             it != storageMachine.llStorageControllers.end();
     5593             ++it)
     5594        {
     5595            const StorageController &sctl = *it;
     5596
     5597            if (sctl.controllerType == StorageControllerType_NVMe)
     5598            {
     5599                m->sv = SettingsVersion_v1_16;
     5600                return;
     5601            }
     5602        }
     5603    }
     5604
    55825605    if (m->sv < SettingsVersion_v1_15)
    55835606    {
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