VirtualBox

Changeset 78512 in vbox for trunk/src


Ignore:
Timestamp:
May 14, 2019 3:26:58 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130552
Message:

Frontends/VBoxManage: Allow adding virtio-net storage controller.

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r78025 r78512  
    929929                           "%s storagectl %s      <uuid|vmname>\n"
    930930                     "                            --name <name>\n"
    931                      "                            [--add ide|sata|scsi|floppy|sas|usb|pcie]\n"
     931                     "                            [--add ide|sata|scsi|floppy|sas|usb|pcie|virtio]\n"
    932932                     "                            [--controller LSILogic|LSILogicSAS|BusLogic|\n"
    933933                     "                                          IntelAHCI|PIIX3|PIIX4|ICH6|I82078|\n"
    934                      "                            [             USB|NVMe]\n"
     934                     "                            [             USB|NVMe|VirtIO]\n"
    935935                     "                            [--portcount <1-n>]\n"
    936936                     "                            [--hostiocache on|off]\n"
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp

    r76553 r78512  
    700700    systemProperties->GetMaxDevicesPerPortForStorageBus(StorageBus_PCIe, &ulValue);
    701701    RTPrintf("Maximum Devices per NVMe Port:   %u\n", ulValue);
     702    systemProperties->GetMaxInstancesOfStorageBus(ChipsetType_PIIX3, StorageBus_VirtioSCSI, &ulValue);
     703    RTPrintf("Maximum virtio-scsi PIIX3 Controllers:  %u\n", ulValue);
     704    systemProperties->GetMaxInstancesOfStorageBus(ChipsetType_ICH9, StorageBus_VirtioSCSI, &ulValue);
     705    RTPrintf("Maximum virtio-scsi ICH9 Controllers:   %u\n", ulValue);
     706    systemProperties->GetMaxPortCountForStorageBus(StorageBus_VirtioSCSI, &ulValue);
     707    RTPrintf("Maximum virtio-scsi Port count:         %u\n", ulValue);
     708    systemProperties->GetMaxDevicesPerPortForStorageBus(StorageBus_VirtioSCSI, &ulValue);
     709    RTPrintf("Maximum Devices per virtio-scsi Port:   %u\n", ulValue);
    702710    systemProperties->GetMaxInstancesOfStorageBus(ChipsetType_PIIX3, StorageBus_Floppy, &ulValue);
    703711    RTPrintf("Maximum PIIX3 Floppy Controllers:%u\n", ulValue);
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp

    r76553 r78512  
    11101110                                                          ctl.asOutParam()));
    11111111            }
     1112            else if (!RTStrICmp(pszBusType, "virtio-scsi") || !RTStrICmp(pszBusType, "virtio"))
     1113            {
     1114                CHECK_ERROR(machine, AddStorageController(Bstr(pszCtl).raw(),
     1115                                                          StorageBus_VirtioSCSI,
     1116                                                          ctl.asOutParam()));
     1117            }
    11121118            else
    11131119            {
     
    11661172                {
    11671173                    CHECK_ERROR(ctl, COMSETTER(ControllerType)(StorageControllerType_NVMe));
     1174                }
     1175                else if (!RTStrICmp(pszCtlType, "virtio-scsi") || !RTStrICmp(pszCtlType, "virtio"))
     1176                {
     1177                    CHECK_ERROR(ctl, COMSETTER(ControllerType)(StorageControllerType_VirtioSCSI));
    11681178                }
    11691179                else
Note: See TracChangeset for help on using the changeset viewer.

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