VirtualBox

Ignore:
Timestamp:
Oct 21, 2019 6:19:39 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134142
Message:

Main/Machine+BIOSSettings+Console: Full implementation of NVRAM handling (part of VM delete, rename, clone and move code in combination with taking, deleting and restoring snapshots). Corresponding console update (ripping out old, never really used NVRAM handling).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/BIOSSettingsImpl.cpp

    r81299 r81425  
    153153    m->bd.attachCopy(that->m->bd);
    154154
     155    // Intentionally "forget" the NVRAM file since it must be unique and set
     156    // to the correct value before the copy of the settings makes sense.
     157    m->bd->strNVRAMPath.setNull();
     158
    155159    autoInitSpan.setSucceeded();
    156160
     
    373377
    374378    m->bd.backup();
    375 
    376379    m->bd->fIOAPICEnabled = RT_BOOL(aIOAPICEnabled);
     380
    377381    alock.release();
    378382    AutoWriteLock mlock(m->pMachine COMMA_LOCKVAL_SRC_POS);  // mParent is const, needs no locking
     
    401405
    402406    m->bd.backup();
    403 
    404407    m->bd->apicMode = aAPICMode;
     408
    405409    alock.release();
    406410    AutoWriteLock mlock(m->pMachine COMMA_LOCKVAL_SRC_POS);  // mParent is const, needs no locking
     
    591595    /* this will back up current data */
    592596    m->bd.assignCopy(aThat->m->bd);
     597
     598    // Intentionally "forget" the NVRAM file since it must be unique and set
     599    // to the correct value before the copy of the settings makes sense.
     600    m->bd->strNVRAMPath.setNull();
     601
    593602}
    594603
     
    608617}
    609618
     619Utf8Str BIOSSettings::i_getNonVolatileStorageFile()
     620{
     621    AutoCaller autoCaller(this);
     622    AssertComRCReturn(autoCaller.rc(), Utf8Str::Empty);
     623
     624    Utf8Str strTmp;
     625    BIOSSettings::getNonVolatileStorageFile(strTmp);
     626    return strTmp;
     627}
     628
    610629void BIOSSettings::i_updateNonVolatileStorageFile(const Utf8Str &aNonVolatileStorageFile)
    611630{
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