Changeset 57524 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- Aug 25, 2015 10:20:15 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r57280 r57524 3589 3589 sctl.controllerType = StorageControllerType_USB; 3590 3590 } 3591 else if (strType == "NVMe") 3592 { 3593 sctl.storageBus = StorageBus_PCIe; 3594 sctl.controllerType = StorageControllerType_NVMe; 3595 } 3591 3596 else 3592 3597 throw ConfigFileError(this, pelmController, N_("Invalid value '%s' for StorageController/@type attribute"), strType.c_str()); … … 5097 5102 case StorageControllerType_LsiLogicSas: pcszType = "LsiLogicSas"; break; 5098 5103 case StorageControllerType_USB: pcszType = "USB"; break; 5104 case StorageControllerType_NVMe: pcszType = "NVMe"; break; 5099 5105 default: /*case StorageControllerType_PIIX3:*/ pcszType = "PIIX3"; break; 5100 5106 } … … 5580 5586 void MachineConfigFile::bumpSettingsVersionIfNeeded() 5581 5587 { 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 5582 5605 if (m->sv < SettingsVersion_v1_15) 5583 5606 {
Note:
See TracChangeset
for help on using the changeset viewer.