VirtualBox

Ignore:
Timestamp:
Jul 5, 2019 9:16:02 AM (5 years ago)
Author:
vboxsync
Message:

Main/src-client/ConsoleImpl2.cpp: Make sure that VirtIO SCSI also gets the generic SCSI driver attached inbetween itself and the VD driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r78915 r79551  
    42274227    if (enmBus == StorageBus_USB)
    42284228        rc = PDMR3UsbQueryDriverOnLun(pUVM, pcszDevice, uInstance, uLUN, "SCSI", &pBase);
    4229     else if (   (enmBus == StorageBus_SAS || enmBus == StorageBus_SCSI)
     4229    else if (   (enmBus == StorageBus_SAS || enmBus == StorageBus_SCSI || enmBus == StorageBus_VirtioSCSI)
    42304230             || (enmBus == StorageBus_SATA && enmDevType == DeviceType_DVD))
    42314231        rc = PDMR3QueryDriverOnLun(pUVM, pcszDevice, uInstance, uLUN, "SCSI", &pBase);
     
    43164316                || enmBus == StorageBus_SAS
    43174317                || enmBus == StorageBus_SCSI
     4318                || enmBus == StorageBus_VirtioSCSI
    43184319                || enmBus == StorageBus_USB))
    43194320        {
     
    45714572         */
    45724573        if (   (fHotplug || !fAttachDetach)
    4573             && (   (enmBus == StorageBus_SCSI || enmBus == StorageBus_SAS || enmBus == StorageBus_USB)
     4574            && (   (enmBus == StorageBus_SCSI || enmBus == StorageBus_SAS || enmBus == StorageBus_USB || enmBus == StorageBus_VirtioSCSI)
    45744575                || (enmBus == StorageBus_SATA && lType == DeviceType_DVD && !fPassthrough)))
    45754576        {
     
    46154616            }
    46164617            else if (   !fHotplug
    4617                      && (   (enmBus == StorageBus_SAS || enmBus == StorageBus_SCSI)
     4618                     && (   (enmBus == StorageBus_SAS || enmBus == StorageBus_SCSI || enmBus == StorageBus_VirtioSCSI)
    46184619                         || (enmBus == StorageBus_SATA && lType == DeviceType_DVD)))
    46194620                rc = PDMR3DriverAttach(pUVM, pcszDevice, uInstance, uLUN,
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