VirtualBox

Ignore:
Timestamp:
Oct 30, 2019 9:45:55 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134326
Message:

Main,FE/VBoxManage: Add an option to present the SMBIOS System UUID (SMBIOS spec chapter 7.2.1) in little endian format to the guest like it is supposed to be done. To not break existing behavior and causing certain software to require re-activation existing VMs will keep the current (wrong) beahvior. New VMs will be switched to the correct behavior. In addition VBoxManage got a new parameter to set the behavior evene for existing VMs

File:
1 edited

Legend:

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

    r81427 r81581  
    25392539    fLogoFadeOut(true),
    25402540    fPXEDebugEnabled(false),
     2541    fSmbiosUuidLittleEndian(true),
    25412542    ulLogoDisplayTime(0),
    25422543    biosBootMenuMode(BIOSBootMenuMode_MessageAndMenu),
     
    25562557        && fLogoFadeOut
    25572558        && !fPXEDebugEnabled
     2559        && !fSmbiosUuidLittleEndian
    25582560        && ulLogoDisplayTime == 0
    25592561        && biosBootMenuMode == BIOSBootMenuMode_MessageAndMenu
     
    25722574{
    25732575    return (this == &d)
    2574         || (   fACPIEnabled        == d.fACPIEnabled
    2575             && fIOAPICEnabled      == d.fIOAPICEnabled
    2576             && fLogoFadeIn         == d.fLogoFadeIn
    2577             && fLogoFadeOut        == d.fLogoFadeOut
    2578             && fPXEDebugEnabled    == d.fPXEDebugEnabled
    2579             && ulLogoDisplayTime   == d.ulLogoDisplayTime
    2580             && biosBootMenuMode    == d.biosBootMenuMode
    2581             && apicMode            == d.apicMode
    2582             && llTimeOffset        == d.llTimeOffset
    2583             && strLogoImagePath    == d.strLogoImagePath
    2584             && strNVRAMPath        == d.strNVRAMPath);
     2576        || (   fACPIEnabled            == d.fACPIEnabled
     2577            && fIOAPICEnabled          == d.fIOAPICEnabled
     2578            && fLogoFadeIn             == d.fLogoFadeIn
     2579            && fLogoFadeOut            == d.fLogoFadeOut
     2580            && fPXEDebugEnabled        == d.fPXEDebugEnabled
     2581            && fSmbiosUuidLittleEndian == d.fSmbiosUuidLittleEndian
     2582            && ulLogoDisplayTime       == d.ulLogoDisplayTime
     2583            && biosBootMenuMode        == d.biosBootMenuMode
     2584            && apicMode                == d.apicMode
     2585            && llTimeOffset            == d.llTimeOffset
     2586            && strLogoImagePath        == d.strLogoImagePath
     2587            && strNVRAMPath            == d.strNVRAMPath);
    25852588}
    25862589
     
    48214824            if ((pelmBIOSChild = pelmHwChild->findChildElement("NVRAM")))
    48224825                pelmBIOSChild->getAttributeValue("path", hw.biosSettings.strNVRAMPath);
     4826            if ((pelmBIOSChild = pelmHwChild->findChildElement("SmbiosUuidLittleEndian")))
     4827                pelmBIOSChild->getAttributeValue("enabled", hw.biosSettings.fSmbiosUuidLittleEndian);
     4828            else
     4829                hw.biosSettings.fSmbiosUuidLittleEndian = false; /* Default for existing VMs. */
    48234830
    48244831            // legacy BIOS/IDEController (pre 1.7)
     
    62936300        if (!hw.biosSettings.strNVRAMPath.isEmpty())
    62946301            pelmBIOS->createChild("NVRAM")->setAttribute("path", hw.biosSettings.strNVRAMPath);
     6302        if (hw.biosSettings.fSmbiosUuidLittleEndian)
     6303            pelmBIOS->createChild("SmbiosUuidLittleEndian")->setAttribute("enabled", hw.biosSettings.fSmbiosUuidLittleEndian);
    62956304    }
    62966305
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