VirtualBox

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


Ignore:
Timestamp:
Nov 11, 2009 5:09:45 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54735
Message:

EFI: Main work for additional firmware types and presence checks

File:
1 edited

Legend:

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

    r24551 r24599  
    15921592                        )
    15931593                    hw.firmwareType = FirmwareType_EFI;
     1594                else if (    strFirmwareType == "EFI64")
     1595                    hw.firmwareType = FirmwareType_EFI64;
     1596                else if (    strFirmwareType == "EFIDUAL")
     1597                    hw.firmwareType = FirmwareType_EFIDUAL;
    15941598                else
    15951599                    throw ConfigFileError(this,
     
    24752479
    24762480    if (    (m->sv >= SettingsVersion_v1_9)
    2477          && (hw.firmwareType == FirmwareType_EFI)
     2481         && (hw.firmwareType >= FirmwareType_EFI)
    24782482       )
    24792483    {
    24802484         xml::ElementNode *pelmFirmware = pelmHardware->createChild("Firmware");
    2481          pelmFirmware->setAttribute("type", "EFI");
     2485         const char *pcszFirmware;
     2486
     2487         switch (hw.firmwareType)
     2488         {
     2489            case FirmwareType_EFI:      pcszFirmware = "EFI";   break;
     2490            case FirmwareType_EFI64:    pcszFirmware = "EFI64"; break;
     2491            case FirmwareType_EFIDUAL:  pcszFirmware = "EFIDUAL"; break;
     2492            default:                    pcszFirmware = "None"; break;
     2493         }
     2494         pelmFirmware->setAttribute("type", pcszFirmware);
    24822495    }
    24832496
     
    29772990    // all the following require settings version 1.9
    29782991    if (    (m->sv < SettingsVersion_v1_9)
    2979          && (    (hardwareMachine.firmwareType == FirmwareType_EFI)
     2992         && (    (hardwareMachine.firmwareType >= FirmwareType_EFI)
    29802993              || (hardwareMachine.fHardwareVirtExclusive != HWVIRTEXCLUSIVEDEFAULT)
    29812994              || fTeleporterEnabled
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