Changeset 81581 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 30, 2019 9:45:55 AM (5 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r81479 r81581 5263 5263 uuid="73af4152-7e67-4144-bf34-41c38e8b4cc7" 5264 5264 wsmap="managed" 5265 reservedMethods="1" reservedAttributes=" 8"5265 reservedMethods="1" reservedAttributes="7" 5266 5266 > 5267 5267 <desc> … … 5330 5330 The location of the file storing the non-volatile memory content when 5331 5331 the VM is powered off. The file does not always exist. 5332 </desc> 5333 </attribute> 5334 5335 <attribute name="SMBIOSUuidLittleEndian" type="boolean"> 5336 <desc> 5337 Flag to control whether the SMBIOS system UUID is presented in little endian 5338 form to the guest as mandated by the SMBIOS spec chapter 7.2.1. 5339 Before VirtualBox version 6.1 it was always presented in big endian form 5340 and to retain the old behavior this flag was introduced so it can be changed. 5341 VMs created with VBox 6.1 will default to true for this flag. 5332 5342 </desc> 5333 5343 </attribute> -
trunk/src/VBox/Main/include/BIOSSettingsImpl.h
r81425 r81581 85 85 HRESULT setPXEDebugEnabled(BOOL enable); 86 86 HRESULT getNonVolatileStorageFile(com::Utf8Str &aNonVolatileStorageFile); 87 HRESULT getSMBIOSUuidLittleEndian(BOOL *enabled); 88 HRESULT setSMBIOSUuidLittleEndian(BOOL enable); 87 89 88 90 struct Data; -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r81425 r81581 1685 1685 InsertConfigInteger(pBiosCfg, "PXEDebug", fPXEDebug); 1686 1686 InsertConfigBytes(pBiosCfg, "UUID", &HardwareUuid,sizeof(HardwareUuid)); 1687 BOOL fUuidLe; 1688 hrc = biosSettings->COMGETTER(SMBIOSUuidLittleEndian)(&fUuidLe); H(); 1689 InsertConfigInteger(pBiosCfg, "UuidLe", fUuidLe); 1687 1690 InsertConfigNode(pBiosCfg, "NetBoot", &pNetBootCfg); 1688 1691 InsertConfigInteger(pBiosCfg, "McfgBase", uMcfgBase); … … 1754 1757 hrc = biosSettings->COMGETTER(NonVolatileStorageFile)(bstrNVRAM.asOutParam()); H(); 1755 1758 1759 BOOL fUuidLe; 1760 hrc = biosSettings->COMGETTER(SMBIOSUuidLittleEndian)(&fUuidLe); H(); 1761 1756 1762 /* Get graphics mode settings */ 1757 1763 uint32_t u32GraphicsMode = UINT32_MAX; … … 1816 1822 InsertConfigInteger(pCfg, "APIC", uFwAPIC); 1817 1823 InsertConfigBytes(pCfg, "UUID", &HardwareUuid,sizeof(HardwareUuid)); 1824 InsertConfigInteger(pCfg, "UuidLe", fUuidLe); 1818 1825 InsertConfigInteger(pCfg, "64BitEntry", f64BitEntry); /* boolean */ 1819 1826 InsertConfigString(pCfg, "NvramFile", bstrNVRAM); -
trunk/src/VBox/Main/src-server/BIOSSettingsImpl.cpp
r81425 r81581 489 489 490 490 491 HRESULT BIOSSettings::getSMBIOSUuidLittleEndian(BOOL *enabled) 492 { 493 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 494 495 *enabled = m->bd->fSmbiosUuidLittleEndian; 496 497 return S_OK; 498 } 499 500 HRESULT BIOSSettings::setSMBIOSUuidLittleEndian(BOOL enable) 501 { 502 /* the machine needs to be mutable */ 503 AutoMutableStateDependency adep(m->pMachine); 504 if (FAILED(adep.rc())) return adep.rc(); 505 506 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 507 508 m->bd.backup(); 509 m->bd->fSmbiosUuidLittleEndian = RT_BOOL(enable); 510 511 alock.release(); 512 AutoWriteLock mlock(m->pMachine COMMA_LOCKVAL_SRC_POS); // mParent is const, needs no locking 513 m->pMachine->i_setModified(Machine::IsModified_BIOS); 514 515 return S_OK; 516 } 517 491 518 492 519 // IBIOSSettings methods -
trunk/src/VBox/Main/xml/Settings.cpp
r81427 r81581 2539 2539 fLogoFadeOut(true), 2540 2540 fPXEDebugEnabled(false), 2541 fSmbiosUuidLittleEndian(true), 2541 2542 ulLogoDisplayTime(0), 2542 2543 biosBootMenuMode(BIOSBootMenuMode_MessageAndMenu), … … 2556 2557 && fLogoFadeOut 2557 2558 && !fPXEDebugEnabled 2559 && !fSmbiosUuidLittleEndian 2558 2560 && ulLogoDisplayTime == 0 2559 2561 && biosBootMenuMode == BIOSBootMenuMode_MessageAndMenu … … 2572 2574 { 2573 2575 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); 2585 2588 } 2586 2589 … … 4821 4824 if ((pelmBIOSChild = pelmHwChild->findChildElement("NVRAM"))) 4822 4825 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. */ 4823 4830 4824 4831 // legacy BIOS/IDEController (pre 1.7) … … 6293 6300 if (!hw.biosSettings.strNVRAMPath.isEmpty()) 6294 6301 pelmBIOS->createChild("NVRAM")->setAttribute("path", hw.biosSettings.strNVRAMPath); 6302 if (hw.biosSettings.fSmbiosUuidLittleEndian) 6303 pelmBIOS->createChild("SmbiosUuidLittleEndian")->setAttribute("enabled", hw.biosSettings.fSmbiosUuidLittleEndian); 6295 6304 } 6296 6305
Note:
See TracChangeset
for help on using the changeset viewer.