VirtualBox

Changeset 103532 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
Feb 22, 2024 2:05:31 PM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161878
Message:

VBoxManage: Add subcommand for enabling UEFI secure boot (and show the status in the VM infos).
Main/NVRAMStore+UefiVariableStore: Tweaks to allow reading the UEFI secure boot state when the VM isn't mutable.
doc/manual: Update VBoxManage manpage.

File:
1 edited

Legend:

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

    r99739 r103532  
    380380{
    381381#ifndef VBOX_COM_INPROC
    382     /* the machine needs to be mutable */
    383     AutoMutableStateDependency adep(m->pParent);
    384     if (FAILED(adep.hrc())) return adep.hrc();
    385 
    386382    Utf8Str strPath;
    387383    NvramStore::getNonVolatileStorageFile(strPath);
     
    418414    {
    419415        m->pUefiVarStore.queryInterfaceTo(aUefiVarStore.asOutParam());
    420 
    421         /* Mark the NVRAM store as potentially modified. */
    422         m->pParent->i_setModified(Machine::IsModified_NvramStore);
     416        /* The "modified" state is handled by i_retainUefiVarStore. */
    423417    }
    424418
     
    10661060HRESULT NvramStore::i_retainUefiVarStore(PRTVFS phVfs, bool fReadonly)
    10671061{
    1068     /* the machine needs to be mutable */
    1069     AutoMutableStateDependency adep(m->pParent);
     1062    /* the machine needs to be mutable unless fReadonly is set */
     1063    AutoMutableStateDependency adep(fReadonly ? NULL : m->pParent);
    10701064    if (FAILED(adep.hrc())) return adep.hrc();
    10711065
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