VirtualBox

Changeset 107849 in vbox for trunk/src


Ignore:
Timestamp:
Jan 17, 2025 3:09:27 PM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167047
Message:

src/VBox/Main/src-all/NvramStoreImpl.cpp: Extend the gross hack to work with ARM VMs (really need to think about a beter solution), bugref:10780

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/NvramStoreImpl.cpp

    r107575 r107849  
    485485            {
    486486                /** @todo The size is hardcoded to match what the firmware image uses right now which is a gross hack... */
    487                 vrc = RTVfsFileSetSize(hVfsUefiVarStore, 540672, RTVFSFILE_SIZE_F_NORMAL);
     487                uint64_t cbUefi = m->pParent->i_getPlatform()->i_getArchitecture() == PlatformArchitecture_ARM ? 786432 : 540672;
     488                vrc = RTVfsFileSetSize(hVfsUefiVarStore, cbUefi, RTVFSFILE_SIZE_F_NORMAL);
    488489                if (RT_SUCCESS(vrc))
    489490                    m->mapNvram["efi/nvram"] = hVfsUefiVarStore;
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