VirtualBox

Changeset 20211 in vbox


Ignore:
Timestamp:
Jun 3, 2009 8:04:57 AM (16 years ago)
Author:
vboxsync
Message:

OVF: better handling of missing SATA/SCSI device emulation in OSE

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r20081 r20211  
    15861586            /* Hard disk Controller */
    15871587            uint16_t cIDEused = 0;
    1588             uint16_t cSATAused = 0;
    1589             uint16_t cSCSIused = 0;
     1588            uint16_t cSATAused = 0; NOREF(cSATAused);
     1589            uint16_t cSCSIused = 0; NOREF(cSCSIused);
    15901590            ControllersMap::const_iterator hdcIt;
    15911591            /* Iterate through all hard disk controllers */
     
    16301630                        }
    16311631
    1632 #ifdef VBOX_WITH_AHCI
    16331632                    case HardDiskController::SATA:
    16341633                        {
     1634#ifdef VBOX_WITH_AHCI
    16351635                            /* Check for the constrains */
    16361636                            if (cSATAused < 1)
     
    16531653                            ++cSATAused;
    16541654                            break;
     1655#else /* !VBOX_WITH_AHCI */
     1656                            addWarning(tr("The virtual system \"%s\" requests at least one SATA controller but this version of VirtualBox does not provide a SATA controller emulation"),
     1657                                      vsysThis.strName.c_str());
     1658#endif /* !VBOX_WITH_AHCI */
    16551659                        }
    1656 #endif /* VBOX_WITH_AHCI */
    16571660
    16581661                    case HardDiskController::SCSI:
    16591662                        {
     1663#ifdef VBOX_WITH_LSILOGIC
    16601664                            /* Check for the constrains */
    16611665                            if (cSCSIused < 1)
     
    16761680                            ++cSCSIused;
    16771681                            break;
     1682#else /* !VBOX_WITH_LSILOGIC */
     1683                            addWarning(tr("The virtual system \"%s\" requests at least one SATA controller but this version of VirtualBox does not provide a SCSI controller emulation"),
     1684                                       vsysThis.strName.c_str());
     1685#endif /* !VBOX_WITH_LSILOGIC */
    16781686                        }
    16791687                }
     
    21602168#endif /* VBOX_WITH_AHCI */
    21612169
     2170#ifdef VBOX_WITH_LSILOGIC
    21622171            /* Hard disk controller SCSI */
    21632172            std::list<VirtualSystemDescriptionEntry*> vsdeHDCSCSI = vsdescThis->findByType(VirtualSystemDescriptionType_HardDiskControllerSCSI);
     
    21842193                if (FAILED(rc)) throw rc;
    21852194            }
     2195#endif /* VBOX_WITH_LSILOGIC */
    21862196
    21872197            /* Now its time to register the machine before we add any hard disks */
     
    45664576#endif // VBOX_WITH_AHCI
    45674577
     4578#ifdef VBOX_WITH_LSILOGIC
    45684579//     <const name="HardDiskControllerSCSI" value="8" />
    45694580        rc = GetStorageControllerByName(Bstr("SCSI"), pController.asOutParam());
     
    45884599                throw rc;
    45894600        }
     4601#endif // VBOX_WITH_LSILOGIC
    45904602
    45914603//     <const name="HardDiskImage" value="9" />
  • trunk/src/VBox/Main/Makefile.kmk

    r20160 r20211  
    215215        $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \
    216216        $(if $(VBOX_WITH_AHCI),VBOX_WITH_AHCI,) \
     217        $(if $(VBOX_WITH_LSILOGIC),VBOX_WITH_LSILOGIC,) \
    217218        $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
    218219        $(if $(VBOX_WITH_RESOURCE_USAGE_API),VBOX_WITH_RESOURCE_USAGE_API,) \
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